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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to