continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r648437 - /continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/execution/AbstractBuildExecutor.java
Date Tue, 15 Apr 2008 22:26:09 GMT
Author: olamy
Date: Tue Apr 15 15:26:06 2008
New Revision: 648437

URL: http://svn.apache.org/viewvc?rev=648437&view=rev
Log:
[CONTINUUM-1619] Project Ant : Adding a built-in property allowing to know wich project is
under construction from the ant build script

Adding the following properties for all project types :
- continuum.project.id
- continuum.project.name
- continuum.project.version

This properties are used for m1,m2,ant builders with -D



Modified:
    continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/execution/AbstractBuildExecutor.java

Modified: continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/execution/AbstractBuildExecutor.java
URL: http://svn.apache.org/viewvc/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/execution/AbstractBuildExecutor.java?rev=648437&r1=648436&r2=648437&view=diff
==============================================================================
--- continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/execution/AbstractBuildExecutor.java
(original)
+++ continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/execution/AbstractBuildExecutor.java
Tue Apr 15 15:26:06 2008
@@ -277,6 +277,9 @@
         properties.setProperty( "continuum.project.lastBuild.state", String.valueOf( project.getOldState()
) );
         properties.setProperty( "continuum.project.lastBuild.number", String.valueOf( project.getBuildNumber()
) );
         properties.setProperty( "continuum.project.nextBuild.number", String.valueOf( project.getBuildNumber()
+ 1 ) );
+        properties.setProperty( "continuum.project.id", String.valueOf( project.getId() )
);
+        properties.setProperty( "continuum.project.name", project.getName() );
+        properties.setProperty( "continuum.project.version", project.getVersion() );
         return properties;
     }
 



Mime
View raw message