Wierenga, R. - SPLXE wrote:

I already got to the stage that i created an maven.xml file, included a new
goal and executed a process using ant:exec. But i'm stuck at the point in
which i have to insert the classpath value, where do i get it from?


You can use the ant:java task rather than ant:exec since ant:exec does not provide a <classpath> tag. Since you are using a maven.xml file, you can specify a classpath in it rather than by using a batch file. You might want to look at the plugin.jelly files of the installed plugins. Maven unpacks the plugin jar files in subdirectories of the cache directory. It is located, by default, at ${user.home}/.maven/cache. Reading these files is a normal way to learn Maven jelly scripting conventions.

The Maven path id for the POM classpath is maven.dependency.classpath. If you need to add the recently built code to the classpath you could do that as follows:

<classpath>
  <pathelement path=${maven.build.dest}/>
  <path refid="maven.dependency.classpath"/>
<classpath>

Hope that this helps.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to