CodeForge QQ客服 CodeForge 400电话 客服电话 4006316121

build.xml ( 文件浏览 )

  • thiago15151 发布于2016-05-20
  • 浏览次数:0
  • 下载次数:0
  • 下载需 1 积分
  • 侵权举报
			<?xml version="1.0" encoding="UTF-8"?>
<!-- You may freely edit this file. See commented blocks below for -->
<!-- some examples of how to customize the build. -->
<!-- (If you delete it and reopen the project it will be recreated.) -->
<!-- By default, only the Clean and Build commands use this build script. -->
<!-- Commands such as Run, Debug, and Test only use this build script if -->
<!-- the Compile on Save feature is turned off for the project. -->
<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
<!-- in the project's Project Properties dialog box.-->
<project name="ConexaoMongodb" default="default" basedir=".">
    <description>Builds, tests, and runs the project ConexaoMongodb.</description>
    <import file="nbproject/build-impl.xml"/>

    There exist several targets which are by default empty and which can be 
    used for execution of your tasks. These targets are usually executed 
    before and after some main targets. They are: 

      -pre-init:                 called before initialization of project properties
      -post-init:                called after initialization of project properties
      -pre-compile:              called before javac compilation
      -post-compile:             called after javac compilation
      -pre-compile-single:       called before javac compilation of single file
      -post-compile-single:      called after javac compilation of single file
      -pre-compile-test:         called before javac compilation of JUnit tests
      -post-compile-test:        called after javac compilation of JUnit tests
      -pre-compile-test-single:  called before javac compilation of single JUnit test
      -post-compile-test-single: called after javac compilation of single JUunit test
      -pre-jar:                  called before JAR building
      -post-jar:                 called after JAR building
      -post-clean:               called after cleaning build products

    (Targets beginning with '-' are not intended to be called on their own.)

    Example of inserting an obfuscator after compilation could look like this:

        <target name="-post-compile">
                <fileset dir="${

    For list of available properties check the imported 
    nbproject/build-impl.xml file. 

    Another way to customize the build is by overriding existing main targets.
    The targets of interest are: 

      -init-macrodef-javac:     defines macro for javac compilation
      -init-macrodef-junit:     defines macro for junit execution
      -init-macrodef-debug:     defines macro for class debugging
      -init-macrodef-java:      defines macro for class execution
      -do-jar:                  JAR building
      run:                      execution of project 
      -javadoc-build:           Javadoc generation
      test-report:              JUnit report generation

    An example of overriding the target for project execution could look like this:

        <target name="run" depends="ConexaoMongodb-impl.jar">
            <exec dir="bin" executable="launcher.exe">
                <arg file="${

    Notice that the overridden target depends on the jar target and not only on 
    the compile target as the regular run target does. Again, for a list of available 
    properties which you can use, check the target you are overriding in the
    nbproject/build-impl.xml file. 

展开> <收缩


1 积分



温馨提示: 点击源码文件名可预览文件内容哦 ^_^
名称 大小 修改日期
01.97 kB
manifest.mf85.00 B2015-11-01 09:44
build.xml3.54 kB2015-11-01 09:44
01.97 kB
Main.java2.29 kB2015-11-01 11:22
01.97 kB
project.xml522.00 B2015-11-01 09:44
project.properties2.66 kB2015-11-01 10:24
genfiles.properties475.00 B2015-11-01 09:44
build-impl.xml77.49 kB2015-11-01 09:44
01.97 kB
01.97 kB
private.xml343.00 B2015-11-13 09:40
private.properties116.00 B2015-11-01 10:05
01.97 kB
Main.class2.67 kB2015-11-01 11:22
Main$1.class911.00 B2015-11-01 11:22
<.netbeans_update_resources>0.00 B2015-11-01 10:04
<.netbeans_automatic_build>0.00 B2015-11-01 10:04

build.xml (18.80 kB)

需要 1 积分
您持有 积分

CodeForge积分(原CF币)全新升级,功能更强大,使用更便捷,不仅可以用来下载海量源代码马上还可兑换精美小礼品了 了解更多


支付宝优惠套餐快速获取 30 积分






登录 CodeForge

还没有CodeForge账号? 立即注册

Switch to the English version?

CodeForge 英文版
CodeForge 中文版


^_^"呃 ...