提交 39c4fb8f authored 作者: Thomas Mueller's avatar Thomas Mueller

javac -nowarn doesn't have the desired effect with JDK 1.5/1.6

上级 42ed3064
...@@ -2,6 +2,6 @@ ...@@ -2,6 +2,6 @@
if "%JAVA_HOME%"=="" echo Error: JAVA_HOME is not defined. if "%JAVA_HOME%"=="" echo Error: JAVA_HOME is not defined.
if exist bin/org/h2/build/Build.class goto buildOK if exist bin/org/h2/build/Build.class goto buildOK
if not exist bin mkdir bin if not exist bin mkdir bin
javac -nowarn -sourcepath src/tools -d bin src/tools/org/h2/build/*.java javac -sourcepath src/tools -d bin src/tools/org/h2/build/*.java
:buildOK :buildOK
java -Xmx512m -cp "bin;%JAVA_HOME%/lib/tools.jar;temp" org.h2.build.Build %1 %2 %3 %4 %5 java -Xmx512m -cp "bin;%JAVA_HOME%/lib/tools.jar;temp" org.h2.build.Build %1 %2 %3 %4 %5
\ No newline at end of file
...@@ -6,6 +6,6 @@ if [ ! -f "bin/org/h2/build/Build.class" ] ; then ...@@ -6,6 +6,6 @@ if [ ! -f "bin/org/h2/build/Build.class" ] ; then
if [ ! -d "bin" ] ; then if [ ! -d "bin" ] ; then
mkdir bin mkdir bin
fi fi
javac -nowarn -sourcepath src/tools -d bin src/tools/org/h2/build/*.java javac -sourcepath src/tools -d bin src/tools/org/h2/build/*.java
fi fi
java -Xmx512m -cp "bin:$JAVA_HOME/lib/tools.jar:temp" org.h2.build.Build $@ java -Xmx512m -cp "bin:$JAVA_HOME/lib/tools.jar:temp" org.h2.build.Build $@
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
</target> </target>
<target name="compile" depends="switchSourceAuto, resources, download"> <target name="compile" depends="switchSourceAuto, resources, download">
<javac destdir="bin" nowarn="true" debug="true" debuglevel="lines,source" > <javac destdir="bin" debug="true" debuglevel="lines,source" >
<classpath location="ext/servlet-api-2.4.jar" /> <classpath location="ext/servlet-api-2.4.jar" />
<classpath location="ext/lucene-core-2.2.0.jar" /> <classpath location="ext/lucene-core-2.2.0.jar" />
<classpath location="ext/slf4j-api-1.5.0.jar" /> <classpath location="ext/slf4j-api-1.5.0.jar" />
...@@ -108,7 +108,7 @@ ...@@ -108,7 +108,7 @@
</target> </target>
<target name="switchSourcePrepare" depends="clean"> <target name="switchSourcePrepare" depends="clean">
<javac srcdir="src/tools" destdir="bin" debug="true" nowarn="true" debuglevel="lines,source" includes="org/h2/build/code/SwitchSource.java"/> <javac srcdir="src/tools" destdir="bin" debug="true" debuglevel="lines,source" includes="org/h2/build/code/SwitchSource.java"/>
</target> </target>
<target name="switchSourceAndroid" depends="switchSourcePrepare"> <target name="switchSourceAndroid" depends="switchSourcePrepare">
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论