📄 build-impl.xml
字号:
<!-- You can override this target in the ../build.xml file. -->
</target>
<target name="-do-compile" depends="init, deps-jar, -pre-pre-compile, -pre-compile">
<webproject:javac xmlns:webproject="http://www.netbeans.org/ns/web-project/1"/>
<copy todir="${build.classes.dir}">
<fileset dir="${src.dir}" excludes="${build.classes.excludes}"/>
</copy>
<copy todir="${build.web.dir}">
<fileset excludes="WEB-INF/classes/**" dir="${web.docbase.dir}"/>
</copy>
</target>
<target name="-post-compile">
<!-- Empty placeholder for easier customization. -->
<!-- You can override this target in the ../build.xml file. -->
</target>
<target name="compile" depends="init,deps-jar,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project."/>
<target name="-pre-compile-single">
<!-- Empty placeholder for easier customization. -->
<!-- You can override this target in the ../build.xml file. -->
</target>
<target name="-do-compile-single" depends="init,deps-jar,-pre-pre-compile">
<fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
<webproject:javac xmlns:webproject="http://www.netbeans.org/ns/web-project/1">
<customize>
<patternset includes="${javac.includes}"/>
</customize>
</webproject:javac>
</target>
<target name="-post-compile-single">
<!-- Empty placeholder for easier customization. -->
<!-- You can override this target in the ../build.xml file. -->
</target>
<target name="compile-single" depends="init,deps-jar,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single"/>
<target name="compile-jsps" depends="compile" if="do.compile.jsps" description="Test compile JSP pages to expose compilation errors.">
<mkdir dir="${build.generated.dir}/src"/>
<java classname="org.netbeans.modules.web.project.ant.JspC" fork="true" failonerror="true">
<arg value="-uriroot"/>
<arg file="${basedir}/${build.web.dir}"/>
<arg value="-d"/>
<arg file="${basedir}/${build.generated.dir}/src"/>
<arg value="-die1"/>
<classpath path="${java.home}/../lib/tools.jar:${copyfiles.classpath}:${jspc.classpath}"/>
</java>
<mkdir dir="${build.generated.dir}/classes"/>
<webproject:javac srcdir="${build.generated.dir}/src" destdir="${build.generated.dir}/classes" classpath="${javac.classpath}:${build.classes.dir}:${jspc.classpath}" xmlns:webproject="http://www.netbeans.org/ns/web-project/1"/>
</target>
<target name="-do-compile-single-jsp" depends="compile" if="jsp.includes">
<fail unless="javac.jsp.includes">Must select some files in the IDE or set javac.jsp.includes</fail>
<mkdir dir="${build.generated.dir}/src"/>
<java classname="org.netbeans.modules.web.project.ant.JspCSingle" fork="true" failonerror="true">
<arg value="-uriroot"/>
<arg file="${basedir}/${build.web.dir}"/>
<arg value="-d"/>
<arg file="${basedir}/${build.generated.dir}/src"/>
<arg value="-die1"/>
<arg value="-jspc.files"/>
<arg path="${jsp.includes}"/>
<classpath path="${java.home}/../lib/tools.jar:${copyfiles.classpath}:${jspc.classpath}"/>
</java>
<mkdir dir="${build.generated.dir}/classes"/>
<webproject:javac srcdir="${build.generated.dir}/src" destdir="${build.generated.dir}/classes" classpath="${javac.classpath}:${build.classes.dir}:${jspc.classpath}" xmlns:webproject="http://www.netbeans.org/ns/web-project/1">
<customize>
<patternset includes="${javac.jsp.includes}"/>
</customize>
</webproject:javac>
</target>
<target name="compile-single-jsp">
<fail unless="jsp.includes">Must select a file in the IDE or set jsp.includes</fail>
<antcall target="-do-compile-single-jsp"/>
</target>
<!-- ====================== DIST BUILDING SECTION ====================== -->
<target name="pre-dist">
<!-- Empty placeholder for easier customization. -->
<!-- You can override this target in the ../build.xml file. -->
</target>
<target name="do-dist" depends="init,compile,compile-jsps,pre-dist">
<dirname property="dist.jar.dir" file="${dist.war}"/>
<mkdir dir="${dist.jar.dir}"/>
<jar jarfile="${dist.war}" compress="${jar.compress}">
<fileset dir="${build.web.dir}"/>
</jar>
</target>
<target name="post-dist">
<!-- Empty placeholder for easier customization. -->
<!-- You can override this target in the ../build.xml file. -->
</target>
<target name="dist" depends="init,compile,pre-dist,do-dist,post-dist" description="Build distribution (WAR)."/>
<!-- ====================== EXECUTION SECTION ====================== -->
<target name="run" depends="run-deploy,run-display-browser" description="Deploy to server and show in browser."/>
<target name="run-deploy" depends="init,compile,compile-jsps,-do-compile-single-jsp">
<nbdeploy debugmode="false" clientUrlPart="${client.urlPart}" forceRedeploy="${forceRedeploy}"/>
</target>
<target name="run-display-browser" if="do.display.browser" depends="run-deploy">
<nbbrowse url="${client.url}"/>
</target>
<target name="run-main" depends="init,compile-single">
<fail unless="run.class">Must select one file in the IDE or set run.class</fail>
<webproject:java classname="${run.class}" xmlns:webproject="http://www.netbeans.org/ns/web-project/1"/>
</target>
<!-- ====================== DEBUGGING SECTION ====================== -->
<target name="debug" description="Debug project in IDE." depends="init,compile,compile-jsps,-do-compile-single-jsp" if="netbeans.home">
<nbdeploy debugmode="true" clientUrlPart="${client.urlPart}"/>
<nbjpdaconnect name="${name}" host="${jpda.host}" address="${jpda.address}" transport="${jpda.transport}">
<classpath>
<path path="${debug.classpath}"/>
</classpath>
<sourcepath>
<path path="${web.docbase.dir}"/>
</sourcepath>
</nbjpdaconnect>
<nbbrowse url="${client.url}"/>
</target>
<target name="debug-single" if="netbeans.home" depends="init,compile,compile-jsps,-do-compile-single-jsp,debug"/>
<target name="-debug-start-debugger" if="netbeans.home" depends="init">
<webproject:nbjpdastart name="${debug.class}" xmlns:webproject="http://www.netbeans.org/ns/web-project/1"/>
</target>
<target name="-debug-start-debuggee-single" if="netbeans.home" depends="init,compile-single">
<fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
<webproject:debug classname="${debug.class}" xmlns:webproject="http://www.netbeans.org/ns/web-project/1"/>
</target>
<target name="debug-single-main" if="netbeans.home" depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single"/>
<target name="-pre-debug-fix" depends="init">
<fail unless="fix.includes">Must set fix.includes</fail>
<property name="javac.includes" value="${fix.includes}.java"/>
</target>
<target name="-do-debug-fix" if="netbeans.home" depends="init,-pre-debug-fix,compile-single">
<webproject:nbjpdareload xmlns:webproject="http://www.netbeans.org/ns/web-project/1"/>
</target>
<target name="debug-fix" if="netbeans.home" depends="init,-pre-debug-fix,-do-debug-fix"/>
<!-- ====================== JAVADOC SECTION ====================== -->
<target name="javadoc-build" depends="init">
<mkdir dir="${dist.javadoc.dir}"/>
<javadoc destdir="${dist.javadoc.dir}" source="${javac.source}" notree="${javadoc.notree}" use="${javadoc.use}" nonavbar="${javadoc.nonavbar}" noindex="${javadoc.noindex}" splitindex="${javadoc.splitindex}" author="${javadoc.author}" version="${javadoc.version}" windowtitle="${javadoc.windowtitle}" private="${javadoc.private}">
<classpath>
<path path="${javac.classpath}"/>
</classpath>
<sourcepath>
<pathelement location="${src.dir}"/>
</sourcepath>
<fileset dir="${src.dir}"/>
</javadoc>
</target>
<target name="javadoc-browse" if="netbeans.home" unless="no.javadoc.preview" depends="init,javadoc-build">
<nbbrowse file="${dist.javadoc.dir}/index.html"/>
</target>
<target name="javadoc" depends="init,javadoc-build,javadoc-browse" description="Build Javadoc."/>
<!-- ====================== CLEANUP SECTION ====================== -->
<target name="deps-clean" depends="init" unless="no.deps"/>
<target name="do-clean" depends="init">
<delete dir="${build.dir}"/>
<delete dir="${dist.dir}"/>
</target>
<target name="post-clean">
<!-- Empty placeholder for easier customization. -->
<!-- You can override this target in the ../build.xml file. -->
</target>
<target name="clean" depends="init,deps-clean,do-clean,post-clean" description="Clean build products."/>
</project>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -