Quero gerar um war de uma aplicação mas não estou conseguindo…
Gostaria de setar o classpath onde se encontram as minhas libs para que possa usar o javac…
MINHAS LIBS SE ENCONTRAM EM: /web/WEB-INF/lib
Alguém tem idéia de como posso fazer?
O código do meu build é esse:
<project name="MyProject" default="dist" basedir=".">
<description>
Teste
</description>
<!-- set global properties for this build -->
<property name="src" location="src/java"/>
<property name="build" location="build"/>
<property name="dist" location="dist"/>
<classpath>
<pathelement path="${basedir}/web/WEB-INF/lib"/>
<fileset dir="lib">
<include name="**/*.jar"/>
</fileset>
</classpath>
<target name="init">
<!-- Create the time stamp -->
<tstamp/>
<!-- Create the build directory structure used by compile -->
<mkdir dir="${build}"/>
</target>
<target name="compile" depends="init"
description="compile the source " >
<!-- Compile the java code from ${src} into ${build} -->
<javac srcdir="${src}" destdir="${build}"/>
</target>
<target name="dist" depends="compile"
description="generate the distribution" >
<!-- Create the distribution directory -->
<mkdir dir="${dist}/lib"/>
</target>
<target name="clean"
description="clean up" >
<!-- Delete the ${build} and ${dist} directory trees -->
<delete dir="${build}"/>
<delete dir="${dist}"/>
</target>
</project>