maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Chikvaidze (JIRA)" <j...@codehaus.org>
Subject [jira] Created: (MRELEASE-211) set version in batch mode
Date Mon, 02 Apr 2007 14:16:06 GMT
set version in batch mode
-------------------------

                 Key: MRELEASE-211
                 URL: http://jira.codehaus.org/browse/MRELEASE-211
             Project: Maven 2.x Release Plugin
          Issue Type: New Feature
    Affects Versions: 2.0-beta-5
         Environment: win XP pro SP2, maven 2.0.5, maven release plugin 2.0-beta-5
            Reporter: Andrew Chikvaidze


I think a lot of developer teams often don't need generate javadoc for their project every
time when running release:perform.
I think it's very useful to add an option to disable javadoc creation.
When I tried to pass to maven "-DperformRelease=false" this haven't effect.
Later I saw in function
    private void perform( ReleaseDescriptor releaseDescriptor, Settings settings, List reactorProjects,
                          File checkoutDirectory, String goals, boolean useReleaseProfile,
                          ReleaseManagerListener listener, ReleaseResult result )

the code:

if ( useReleaseProfile )
        {
            if ( !StringUtils.isEmpty( additionalArguments ) )
            {
                /*
            	evil hack (we don't need javadoc)
            	additionalArguments = additionalArguments + " -DperformRelease=true";
            	*/
                additionalArguments = additionalArguments + " -DperformRelease=false";
            }
            else
            {
                /*
            	evil hack (we don't need javadoc)
                additionalArguments = "-DperformRelease=true";
                */
            	additionalArguments = "-DperformRelease=false";
            }
        }

so, unfortunately now I cannot set -DperformRelease=false.. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message