⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 build-impl.xml

📁 语言:英文 主要是介绍企业J2ME开发
💻 XML
📖 第 1 页 / 共 2 页
字号:
            <fileset dir="${web.docbase.dir}" excludes="${build.web.excludes}"/>
        </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 failonerror="true" fork="true" classname="org.netbeans.modules.web.project.ant.JspC">
            <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 xmlns:webproject="http://www.netbeans.org/ns/web-project/1" classpath="${javac.classpath}:${build.classes.dir}:${jspc.classpath}" destdir="${build.generated.dir}/classes" srcdir="${build.generated.dir}/src"/>
    </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 failonerror="true" fork="true" classname="org.netbeans.modules.web.project.ant.JspCSingle">
            <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 xmlns:webproject="http://www.netbeans.org/ns/web-project/1" classpath="${javac.classpath}:${build.classes.dir}:${jspc.classpath}" destdir="${build.generated.dir}/classes" srcdir="${build.generated.dir}/src">
            <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 file="${dist.war}" property="dist.jar.dir"/>
        <mkdir dir="${dist.jar.dir}"/>
        <jar compress="${jar.compress}" jarfile="${dist.war}">
            <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 forceRedeploy="${forceRedeploy}" clientUrlPart="${client.urlPart}" debugmode="false"/>
    </target>
    <target if="do.display.browser" name="run-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 xmlns:webproject="http://www.netbeans.org/ns/web-project/1" classname="${run.class}"/>
    </target>
    <!--
    ======================
    DEBUGGING SECTION
    ======================
    -->
    <target name="debug" description="Debug project in IDE." depends="init,compile,compile-jsps,-do-compile-single-jsp" if="netbeans.home">
        <nbdeploy clientUrlPart="${client.urlPart}" debugmode="true"/>
        <nbjpdaconnect transport="${jpda.transport}" address="${jpda.address}" host="${jpda.host}" name="${name}">
            <classpath>
                <path path="${debug.classpath}"/>
            </classpath>
            <sourcepath>
                <path path="${web.docbase.dir}"/>
            </sourcepath>
        </nbjpdaconnect>
        <antcall target="debug-display-browser"/>
    </target>
    <target if="do.display.browser" name="debug-display-browser">
        <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 xmlns:webproject="http://www.netbeans.org/ns/web-project/1" name="${debug.class}"/>
    </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 xmlns:webproject="http://www.netbeans.org/ns/web-project/1" classname="${debug.class}"/>
    </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 value="${fix.includes}.java" name="javac.includes"/>
    </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 quiet="true" includeEmptyDirs="true">
            <fileset dir="${build.web.dir}/WEB-INF/lib"/>
        </delete>
        <delete includeEmptyDirs="true">
            <fileset dir=".">
                <include name="${build.dir}/**"/>
                <exclude name="${build.web.dir}/WEB-INF/lib/**"/>
            </fileset>
        </delete>
        <available property="status.clean-failed" type="dir" file="${build.web.dir}/WEB-INF/lib"/>
        <delete dir="${dist.dir}"/>
    </target>
    <target name="check-clean" depends="do-clean" if="status.clean-failed">
        <echo message="Warning: unable to delete some files in ${build.web.dir}/WEB-INF/lib - they are probably locked by the J2EE server. "/>
        <echo message="To delete all files undeploy the module from Server Registry in Runtime tab and then use Clean again." level="info"/>
    </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,check-clean,-post-clean" description="Clean build products."/>
</project>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -