I'm totally unclear on to what exactly your problems are, but have you
read: http://maven.apache.org/plugins/maven-antrun-plugin/classpaths.html
?
-Stephen
On 3/8/06, Markus Sell <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm calling my old ant tasks via the antrun plugin from maven 2. By calling
> the Ant Task javac I want to use the depencenies from my pom file as a
> classpath/classpathrefid. How can I do that?
>
> ...
> <plugins>
> <plugin>
> <artifactId>maven-antrun-plugin</artifactId>
> <executions>
> <execution>
> <phase>compile</phase>
> <configuration>
> <artifacts>${maven.dependency.classpath}</artifacts>
> <tasks>
> <tstamp><format property="timestamp"
> pattern="yyyy-MM-dd_HHmmss"/></tstamp>
> <property file="${user.home}/oms.build.properties"/>
> <property file="build.properties"/>
> <property file="release.properties"/>
> <javac fork="yes" destdir="${o.builddir}" debug="${debug}"
> debuglevel="${debuglevel}" optimize="${optimize}"
> deprecation="${deprecation}">
> <classpath refid="maven.dependency.classpath"/>
> <src path="${o.srcdir}"/>
> <include name="**/*.java"/>
> </javac>
> </tasks>
> </configuration>
> <goals>
> <goal>run</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
> </plugins>
> ...
>
>
> One way is to use the Antlib, but I don't want to run ant, instead I want to
> use maven2.
>
> any ideas or help?
> markus
>
--
Stephen Duncan Jr
www.stephenduncanjr.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]