Author: bodewig Date: Thu Oct 26 21:15:50 2006 New Revision: 468260 URL: http://svn.apache.org/viewvc?view=rev&rev=468260 Log: explicitly set -source and -target when compiling
Modified: ant/antlibs/common/trunk/build.xml Modified: ant/antlibs/common/trunk/build.xml URL: http://svn.apache.org/viewvc/ant/antlibs/common/trunk/build.xml?view=diff&rev=468260&r1=468259&r2=468260 ============================================================================== --- ant/antlibs/common/trunk/build.xml (original) +++ ant/antlibs/common/trunk/build.xml Thu Oct 26 21:15:50 2006 @@ -36,6 +36,11 @@ <property name="src.junit" location="src/tests/junit"/> <property name="src.antunit" location="src/tests/antunit"/> + <!-- javac properties --> + <property name="javac.-source" value="1.2"/> + <property name="javac.-target" value="1.2"/> + <property name="javac.debug" value="on"/> + <!--you really need a proper version in version.properties--> <property name="artifact.version" value="0.1-SNAPSHOT"/> <property name="artifact.name" value="ant-${ant.project.name}"/> @@ -77,7 +82,9 @@ <javac srcdir="src/main" destdir="${build.classes}" - debug="true" + debug="${javac.debug}" + source="${javac.-source}" + source="${javac.-target}" /> </target> @@ -144,7 +151,9 @@ <javac srcdir="${src.junit}" destdir="${build.testclasses}" - debug="true" + debug="${javac.debug}" + source="${javac.-source}" + source="${javac.-target}" > <classpath> <pathelement location="${jarname}"/> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]