Hi All

I'm trying to set property from ant task and access it from maven plugin 
how can i do that.  ..?


for eg. this is what i'm trying to achieve

1. with ant-run plugin i created
                        <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-antrun-plugin</artifactId>
                <executions>
                        <id>BUILD-NUMBER-GENERATION</id>
                        <execution>
                                <goals>
                                        <goal>run</goal>
                                </goals>
                                <phase>generate-sources</phase>
                                <configuration>
                                        <tasks>
                                                   <buildnumber 
file="mybuild.number"/>
                                        </tasks>
                                </configuration>
                        </execution>


2. this will create a property file called"mybuild.number" in my 
${basedir} with the entry
                build.number=1

3. now i'm trying to access this property ${build.number} in my ear plugin 
manifest section as

                <archive>
                                <manifestEntries>
 <Patch-Version>${build.number></Patch-Version>
                                </manifestEntries>
                        <manifest>
                                <addClasspath>true</addClasspath>
                        </manifest>
                </archive>

4. but its not working in my manifest file i just see "Patch-Version : 
${build.number}" 

What am i missing here to make it display as "Patch-Version : 1"  Please 
advise


I also don't know is there any plugin availble for build numbering, (i use 
maven2 with ucm clearcase) ? thats why i haveto do in this way

Please Help

Thanks,
Raghurajan Gurunathan




-----------------------------------------
This transmission may contain information that is privileged,
confidential, legally privileged, and/or exempt from disclosure
under applicable law.  If you are not the intended recipient, you
are hereby notified that any disclosure, copying, distribution, or
use of the information contained herein (including any reliance
thereon) is STRICTLY PROHIBITED.  Although this transmission and
any attachments are believed to be free of any virus or other
defect that might affect any computer system into which it is
received and opened, it is the responsibility of the recipient to
ensure that it is virus free and no responsibility is accepted by
JPMorgan Chase & Co., its subsidiaries and affiliates, as
applicable, for any loss or damage arising in any way from its use.
If you received this transmission in error, please immediately
contact the sender and destroy the material in its entirety,
whether in electronic or hard copy format. Thank you.

Reply via email to