There is an open bug to implement this feature. Not possible at
present other than to manually set the properties you want first.
- brett
On 11/15/05, Nitko2 <[EMAIL PROTECTED]> wrote:
> Hi,
> I'm calling ant tasks defined in external build.xml file but I can't read
> maven properties inside
> build.xml.
>
> pom.xml
> --------
> ...
> <plugin>
> <artifactId>maven-antrun-plugin</artifactId>
> <executions>
> <execution>
> <id>id1</id>
> <phase>verify</phase>
>
> <configuration>
> <tasks>
> <ant antfile="build.xml" dir="ant-scripts" target="obfuscate"
> inheritRefs="true"/>
> </tasks>
> </configuration>
> <goals>
> <goal>run</goal>
> </goals>
> </execution>
> ....
>
>
> build.xml
> ----------
>
> .......
> <target name="init">
> <echo message="******************"/>
> <echo message="${project.version}"/>
> <echo message="*******************"/>
> </target>
> ........
>
> ant output says that project.version property is not set and I get:
> ******************
> ${project.version}
> ******************
>
>
> Any ideas?
>
> Tahnks, Filip.
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]