Hello,
When I am compiling my project through IntellijIDEA it's compiling successfuly. I written
ANT script to compile the code and I have supplied all my lib directory to my ANT but It is not working properly, the errors are like,
1)Class Unknown Exception (java.util.regex.Matcher)
2) Out of memory. Incrase the Maximu heap size (I have already increased in my IDEA but still..)
I wonder why ANT is not picking up all *.jar files from lib directory?
Build.xml
---------
<?xml version="1.0" encoding="UTF-8"?>
<!--Author Sirish Kumar-->
<!--Draft version of ANT Script-->
<project name="TradeWeave" default="compile" basedir=".">
<property name="src" location="SRC"/>
<property name="build-dir" location="SRC/debug"/>
<property name="runtime-libs" location="classes"/>
<property name="was-deployment-dir" location="C:\Program Files\WebSphere\AppServer\installedApps\server1"/>
<property name="server-deployment-dir" location="C:\"/>
<!--First Target:: init-->
<target name="init" description="Initialize the project environment">
<path id="project.class.path">
<pathelement path="${java.class.path}/"/>
<pathelement location="${build-dir}"/>
<fileset dir="${runtime-libs}">
<include name="**/*.jar"/>
<include name="**/*.zip"/>
</fileset>
</path>
<tstamp>
<format property="today" pattern="ddMMyy" locale="en"/>
</tstamp>
</target>
<!--Second Target:: clean-->
<target name="clean" depends="init" description="Delete the contents of the build directory">
<delete dir="${build-dir}"/>
<delete>
<fileset dir="." includes="**/*.war"/>
</delete>
</target>
<!--Third Target:: compile-->
<target name="compile" depends="init">
<mkdir dir="${build-dir}"/>
<!--<copy preservelastmodified="false" todir="${build-dir}/">-->
<!--<fileset includes="*.*" dir="${runtime-libs}"/>-->
<!--</copy>-->
<javac
bootclasspath="${runtime-libs}/rt.jar"
target="1.2"
source="1.2"
includeJavaRuntime="false"
includeAntRuntime="false"
debug="yes"
destdir="${build-dir}">
<classpath refid="project.class.path"/>
<src path="${src}"/>
</javac>
</target>
</project>
Any idea or help please,
Thanks in Advance!
Sirish