0
最近私のjavaクラスとテストクラスを実行するbuild.xmlを作成しました。私は./build.xml
build.xmlの予期しない新しい行
により、UNIXでそれを実行したときしかし、それは私にエラーを与えた:
./build.xml: line 1: syntax error near unexpected token `newline'
./build.xml: line 1: `<?xml version="1.0"?>'
これは私のビルドファイルです:
<?xml version="1.0"?>
<project default='test'>
<target name='test' depends='compile'>
<junit>
<formatter type='plain'/>
<test name='gIntTest'/>
<classpath>
<pathelement path="."/>
</classpath>
</junit>
<java classname="gIntTest" classpath="." fork="true" />
</target>
<target name="compile">
<javac srcdir="." includeantruntime="false"/>
</target>
</project>
:
のbuild.xmlは次のように実行する必要があります。 – Andreas