You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by ma...@apache.org on 2010/02/26 17:23:48 UTC
svn commit: r916740 - in /james/server/trunk: core-library/pom.xml pom.xml
Author: manolo
Date: Fri Feb 26 16:23:47 2010
New Revision: 916740
URL: http://svn.apache.org/viewvc?rev=916740&view=rev
Log:
set product-name and version at compile time
Modified:
james/server/trunk/core-library/pom.xml
james/server/trunk/pom.xml
Modified: james/server/trunk/core-library/pom.xml
URL: http://svn.apache.org/viewvc/james/server/trunk/core-library/pom.xml?rev=916740&r1=916739&r2=916740&view=diff
==============================================================================
--- james/server/trunk/core-library/pom.xml (original)
+++ james/server/trunk/core-library/pom.xml Fri Feb 26 16:23:47 2010
@@ -95,4 +95,25 @@
<scope>test</scope>
</dependency>
</dependencies>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <executions>
+ <execution>
+ <phase>process-resources</phase>
+ <configuration>
+ <tasks>
+ <replace file="src/main/java/org/apache/james/Constants.java" token="@@VERSION@@" value="${version}"/>
+ <replace file="src/main/java/org/apache/james/Constants.java" token="@@NAME@@" value="${productName}"/>
+ </tasks>
+ </configuration>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
</project>
Modified: james/server/trunk/pom.xml
URL: http://svn.apache.org/viewvc/james/server/trunk/pom.xml?rev=916740&r1=916739&r2=916740&view=diff
==============================================================================
--- james/server/trunk/pom.xml (original)
+++ james/server/trunk/pom.xml Fri Feb 26 16:23:47 2010
@@ -1057,6 +1057,7 @@
<javax.activation.artifactId>activation</javax.activation.artifactId>
<javax.mail.groupId>javax.mail</javax.mail.groupId>
<javax.mail.artifactId>mail</javax.mail.artifactId>
+ <productName>Apache-James Mail Server</productName>
</properties>
</project>
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org
Re: svn commit: r916740 - in /james/server/trunk:
core-library/pom.xml pom.xml
Posted by Norman Maurer <no...@apache.org>.
Thank you :)
bye
Norman
2010/2/26, manolo@apache.org <ma...@apache.org>:
> Author: manolo
> Date: Fri Feb 26 16:23:47 2010
> New Revision: 916740
>
> URL: http://svn.apache.org/viewvc?rev=916740&view=rev
> Log:
> set product-name and version at compile time
>
> Modified:
> james/server/trunk/core-library/pom.xml
> james/server/trunk/pom.xml
>
> Modified: james/server/trunk/core-library/pom.xml
> URL:
> http://svn.apache.org/viewvc/james/server/trunk/core-library/pom.xml?rev=916740&r1=916739&r2=916740&view=diff
> ==============================================================================
> --- james/server/trunk/core-library/pom.xml (original)
> +++ james/server/trunk/core-library/pom.xml Fri Feb 26 16:23:47 2010
> @@ -95,4 +95,25 @@
> <scope>test</scope>
> </dependency>
> </dependencies>
> + <build>
> + <plugins>
> + <plugin>
> + <artifactId>maven-antrun-plugin</artifactId>
> + <executions>
> + <execution>
> + <phase>process-resources</phase>
> + <configuration>
> + <tasks>
> + <replace
> file="src/main/java/org/apache/james/Constants.java" token="@@VERSION@@"
> value="${version}"/>
> + <replace
> file="src/main/java/org/apache/james/Constants.java" token="@@NAME@@"
> value="${productName}"/>
> + </tasks>
> + </configuration>
> + <goals>
> + <goal>run</goal>
> + </goals>
> + </execution>
> + </executions>
> + </plugin>
> + </plugins>
> + </build>
> </project>
>
> Modified: james/server/trunk/pom.xml
> URL:
> http://svn.apache.org/viewvc/james/server/trunk/pom.xml?rev=916740&r1=916739&r2=916740&view=diff
> ==============================================================================
> --- james/server/trunk/pom.xml (original)
> +++ james/server/trunk/pom.xml Fri Feb 26 16:23:47 2010
> @@ -1057,6 +1057,7 @@
> <javax.activation.artifactId>activation</javax.activation.artifactId>
> <javax.mail.groupId>javax.mail</javax.mail.groupId>
> <javax.mail.artifactId>mail</javax.mail.artifactId>
> + <productName>Apache-James Mail Server</productName>
> </properties>
>
> </project>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
> For additional commands, e-mail: server-dev-help@james.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org