Uploaded image for project: 'PUBLIC - Liferay Faces'
  1. PUBLIC - Liferay Faces
  2. FACES-2345

Clean Up Liferay Faces Code

    Description

    {markdown}
    This task involves:

    - Removing unused imports from all Liferay Faces files (the easiest way is to use the feature from an IDE like [Eclipse](http://stackoverflow.com/questions/5686825/how-to-remove-unused-imports-from-eclipse) or [Netbeans](http://stackoverflow.com/questions/956900/code-cleanup-in-netbeans)).
    - Fixing the version in the parent-most `pom.xml`
    - Running all generators.
    - Running `fix-versions.pl` from the root of the Liferay Faces Project
    - Using jalopy source formatter on all Liferay Faces files (Using `jalopy.sh` from the command line seems like the easiest way).

    Run the following command from the root of the liferay-faces project to perform the last 4 steps at once:{markdown}
    gsed -i '0,/version>\([0-9][.][0-9]\).*<\/version/s//version>\1.5-ga6-SNAPSHOT<\/version/' pom.xml && \
    fix-versions.pl && mvn clean install && \
    (cd alloy/ && mvn generate-sources -P generate-components) && \
    (cd bridge-impl/ && mvn generate-sources -P generate-components) && \
    (cd bridge-impl/ && mvn generate-sources -P generate-components \
    	-Dcomponent.namespace=portlet -Dcomponent.namespace.URI=http://java.sun.com/portlet_2_0) && \
    (cd portal/ && mvn generate-sources -P generate-components) && \
    mvn clean && jalopy.sh -r .
    

      Attachments

        Activity

          People

          • Assignee:
            kyle.stiemann Kyle Stiemann (Inactive)
            Reporter:
            kyle.stiemann Kyle Stiemann (Inactive)
            Participants of an Issue:
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Packages

              Version Package
              liferay-faces-2.1.5-ga6
              liferay-faces-2.2.5-ga6
              liferay-faces-3.0.5-legacy-ga6
              liferay-faces-3.0.5-ga6
              liferay-faces-3.1.5-ga6
              liferay-faces-3.2.5-ga6
              liferay-faces-4.2.5-ga6