The configuration of the row where the javac part of the build failure is mentioned first in a build-impl.xml
Copy Code code as follows:
<sequential>
<property location= "${build.dir}/empty" name= "Empty.dir"/>
<mkdir dir= "${empty.dir}"/>
<mkdir dir= "@{apgeneratedsrcdir}"/>
<javac debug= "@{debug}" deprecation= "${javac.deprecation}" destdir= "@{destdir}" encoding= "${source.encoding}" Excludes= "@{excludes}" executable= "${platform.javac}" fork= "Yes" Includeantruntime= "false" includes= "@{includes}" Source= "${javac.source}" srcdir= "@{srcdir}" target= "${javac.target}" tempdir= "${java.io.tmpdir}" >
<src>
<dirset dir= "@{gensrcdir}" erroronmissingdir= "false" >
<include name= "*"/>
</dirset>
</src>
<classpath>
<path path= "@{classpath}"/>
</classpath>
<span style= "COLOR: #ff0000" ><compilerarg line= "${endorsed.classpath.cmd.line.arg}"/>
<compilerarg line= "${javac.compilerargs}"/>
<compilerarg value= "-processorpath"/>
<compilerarg path= "@{processorpath}:${empty.dir}"/>
<compilerarg line= "${ap.processors.internal}"/>
<compilerarg value= "-S"/>
<compilerarg path= "@{apgeneratedsrcdir}"/>
<compilerarg line= "${ap.proc.none.internal}"/>
<customize/></SPAN>
</javac>
</sequential>
There is nothing wrong with the program itself, but when the compiler is built, it reports
f:\ Project \subversion\svn2010\jwebplus3\trunk\src\webplus3\webplus3\nbproject\build-impl.xml:868:the following Error occurred while executing this line:
F:\ Project \subversion\svn2010\jwebplus3\trunk\src\webplus3\webplus3\nbproject\build-impl.xml:305:compile failed; The compiler error output for details.
Build failed (Total time: 12 seconds)
Let's see what 305 lines are.
<javac debug= "@{debug}" deprecation= "${javac.deprecation}" destdir= "@{destdir}" encoding= "${source.encoding}" Excludes= "@{excludes}" executable= "${platform.javac}" fork= "Yes" Includeantruntime= "false" includes= "@{includes}" Source= "${javac.source}" srcdir= "@{srcdir}" target= "${javac.target}" tempdir= "${java.io.tmpdir}" >
In fact, we removed
Copy Code code as follows:
<span style= "COLOR: #ff0000" > <compilerarg line= "${endorsed.classpath.cmd.line.arg}"/>
<compilerarg line= "${javac.compilerargs}"/>
<compilerarg value= "-processorpath"/>
<compilerarg path= "@{processorpath}:${empty.dir}"/>
<compilerarg line= "${ap.processors.internal}"/>
<compilerarg value= "-S"/>
<compilerarg path= "@{apgeneratedsrcdir}"/>
<compilerarg line= "${ap.proc.none.internal}"/>
<customize/></SPAN>
This paragraph, build again, succeed!