Hi,

for deploying applications from the TDK, I want to copy all of the
jars needed (as described in the project.xml file) into a target
directory. As I found no easy way to do this, I added the following
target to maven/plugins/core/build.xml

--- cut ---
  <target name="classpath-copy"
     depends="local-init">

    <copy todir="${target.directory}">
      <fileset dir="${lib.repo}">
        <patternset refid="maven.dependency.set"/>
      </fileset>
    </copy>

  </target>
--- cut ---

In my application, I have

--- cut ---
<target name="maven:classpath-copy">
  <ant antfile="${maven.home}/plugins/core/build.xml" target="classpath-copy"/>
</target>
--- cut ---

Now I can call 

--- cut ---
<target name="libs">
   <antcall target="maven:classpath-copy">
     <param name="target.directory" 
            value="${destination}/webapps/${build.project}/WEB-INF/lib"/>
   </antcall>

[... do more work ...]

</target>
--- cut ---


Any reason this target should not be part of the core targets? Any
other way to do this? Basically I must copy all dependency jars from
project.xml into a directory.

        Regards
                Henning

-- 
Dipl.-Inf. (Univ.) Henning P. Schmiedehausen       -- Geschaeftsfuehrer
INTERMETA - Gesellschaft fuer Mehrwertdienste mbH     [EMAIL PROTECTED]

Am Schwabachgrund 22  Fon.: 09131 / 50654-0   [EMAIL PROTECTED]
D-91054 Buckenhof     Fax.: 09131 / 50654-20   

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

Reply via email to