Hi Daniel,

This is a example from a POM of mine:

<property name="project.version" value="${project.version}"/>
<ant antfile="${basedir}/src/main/misc/build.xml"/>

It creates the variable project.version inside the Ant script.

This parameter should be available to the Ant script but isn't because
of a bug (if I'm not mistaken). Anyway this setup works for me.

/Roland

On 3/7/06, Siegmann Daniel, NY <[EMAIL PROTECTED]> wrote:
> I am converting a large and complex project from Ant to Maven2. I am reusing
> part of the existing ant script to build a Jar file for deployment on a
> WebSphere Application Server. The existing Ant script has many properties
> defined which describe the structure of the project, but many of these are
> redundant - Maven already knows base directory, source directory, and so on.
>
> I know M2 doesn't have project.properties, but are there existing properties
> which contain this information? If not, how do I pass this information to
> Ant using the antrun plugin?
>
> --
> Daniel Siegmann
> FJA-US, Inc.
> (212) 840-2618 ext. 139
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to