📄 readme
字号:
containing your help set, under "javahelp/".javahelp.excludes - optionally, list of file name patterns to exclude fromJavaHelp search index construction.javahelp.jar - "modules/docs/${code.name.base.dashes}.jar". Do not override.Constructed from ${javahelp.jar.basename} and ${javahelp.jar.dir}.javahelp.search - "JavaHelpSearch" by default; name of search databasedirectory, relative to your help set. Must match what your help set specifies.jhall.jar - for external modules, if you wish to build JavaHelp, you must definethe location of jhall.jar from the JavaHelp distribution, as this is needed torun the search indexer. DEPRECATED since 5.0u1; the 5.0u1 harness now includesjsearch-*.jar so you do not need to specify this property any longer.keystore - Key store for signing NBMs. A candidate for private.properties - youdo *not* want to share this file! Also ${nbm_alias} and ${storepass} are used inthe NBM signing process.license.file - optional. Location of license text to use when creating an NBM.(External modules only.)manifest.mf - JAR manifest location. Avoid overriding.module.auto.deps.xml - "module-auto-deps.xml" in your project directory bydefault. Optional configuration file.module.classpath - your main module source's compile-time classpath, accordingto <module-dependencies>. Since 5.0u1 uses public-package-only JARs whereappropriate.module.run.classpath [since 5.0u1] - your main module source's run-timeclasspath, according to <module-dependencies>. Currently identical to${module.classpath} except does not use public-package-only JARs.module.jar - location of module JAR relative to cluster directory. Do notoverride directly; override ${module.jar.basename} (default"${code.name.base.dashes}.jar") and/or ${module.jar.dir} (default "modules") ifnecessary (not without a good reason!).module.javadoc.packages - comma-separated list of packages to be included inJavadoc. Defaulted according to <public-packages> or <friend-packages>, but ifyou used <subpackages> (or if you have not specified any public or friendpackages at all) you will need to specify it explicitly.nbm.distribution - optional URL to location where your NBM can be downloadedfrom.nbm.homepage - optional URL to HTML homepage for background about the module.nbm.is.global - set to "true" if NBM cannot be installed in user directory.nbm.module.author - author info for an NBM.nbm.needs.restart - set to "true" if NBM cannot be installed (even for the firsttime) without restarting the IDE.nbm.target.cluster [since 5.0u2] - allow to declare a target cluster whereinstall if NBM install globally.nbplatform.active - optional name of a NB platform to build and run against. Seediscussion above for details of how this is used.netbeans.dest.dir - absolute pathname of NB platform (or IDE or whatever) thatyou are building your module against, and into which your module will be built.Available in project.properties (and in all properties files for netbeans.orgmodules).netbeans.home - location of "platform*" cluster of the NetBeans IDE installationyou are running. *Only defined* when you run an Ant script *inside* the IDE.nbjdk.active [since 5.0u1] - name of a Java platform (JDK) to use when buildingand running. Will try to load (e.g. from ${userdir}/build.properties, where JavaPlatform Manager stores its information) the properties nbjdk.home=${platforms.${nbjdk.active}.home} - JDK (not JRE!) home directory nbjdk.bootclasspath=${platforms.${nbjdk.active}.bootclasspath} - JRE JARs, e.g. rt.jar (default: ${nbjdk.home}/jre/lib/rt.jar) nbjdk.java=${platforms.${nbjdk.active}.java} - java executable (default: ${nbjdk.home}/bin/java) nbjdk.javac=${platforms.${nbjdk.active}.javac} - javac executable (default: ${nbjdk.home}/bin/javac) nbjdk.javadoc=${platforms.${nbjdk.active}.javadoc} - javadoc executable (default: ${nbjdk.home}/bin/javadoc)if they are not already defined. Uses <presetdef> to make <java>, <javac>,<javadoc>, <junit>, and <nbjpdastart> use this JDK. Optional; if unset (or set to'default'), will use the current VM's Java platform instead. Define inplatform.properties (in a standalone module, or in the suite for a suite componentmodule, or in nbbuild/user.build.properties for a netbeans.org module). You mayalso define just ${nbjdk.home} directly, without using ${nbjdk.active}, if you donot need to use the Java Platform Manager to set up the JDK definition.release.dir - "${basedir}/release"; location of a directory full of files tocopy unmodified to the output cluster.run.app.exe - "bin\nb.exe"; name of Windows launcher to start (inside${netbeans.dest.dir}) if trying to run the application for interactive testing.Only relevant if ${app.name} is unset.run.app.sh - "bin/netbeans"; same but for Unix (and Mac OS X).run.args.extra - empty; any added arguments to pass to the launcher.run.jdkhome - location of JDK to run application with for interactive testing.Defaults to JDK the Ant script was using, or that selected by ${nbjdk.active}.DEPRECATED - for compatibility only. Use ${nbjdk.active} instead.spec.version.base - this is a little subtle. If you export an implementationdependency to other modules, *and/or* depend on one or more other modules usingimplementation dependencies, you are advised to use this property *in place of*writing OpenIDE-Module-Specification-Version explicitly in your manifest. Itshould be a dotted number to serve as the base of a specification version; keepthe number of components *fixed* even if you branch the module, so e.g. in adevelopment version use spec.version.base=1.7.0and if you need to increment this in a release branch use e.g. spec.version.base=1.7.1The harness will automatically append integers to it as follows to create theactual specification version:1. Your OpenIDE-Module-Implementation-Version, if specified and an integer.2. The OpenIDE-Module-Implementation-Version of modules you depend on usingimplementation dependencies, if integers; ordered by alphabetizing thedependencies.(Example: if you have impl version 3, and you depend on org.netbeans.modules.foo= 6 and org.netbeans.modules.bar = 7, your actual spec version would be1.7.0.3.7.6.)This is very handy for Auto Update: whenever you or anyone else makes a changeto an implementation API, just increment theOpenIDE-Module-Implementation-Version of the providing module. That module andany modules depending on its API will get a higherOpenIDE-Module-Specification-Version automatically, so the whole set ofinterdependent modules can be published to users at once on an update center.src.dir - "src", module source directory. Avoid overriding.test.unit.cp.extra - any additional classpath you might need to compile yourunit tests. If left empty, you can compile against JUnit; the NB test extensionsin nbjunit.jar; your module; and anything your module compiled against (since5.0u1, ${module.run.classpath}). As of 5.0u2 you can and should include othermodules in project.xml's <test-dependencies> but in earlier releases these mustbe listed in this property. test.unit.cp.extra=\ ${tools.jar}:\ ${basedir}/lib/custom-junit-helpers.jartest.unit.run.cp.extra - any additional classpath you might need to *run* yourunit tests with (beyond what they are already compiled with). As of 5.0u2 youcan and should include other modules in project.xml's <test-dependencies> but inearlier releases these must be listed in this property.test.unit.lib.cp - path to some basic libraries which can be used in unit tests:junit.jar, nbjunit.jar, and insanelib.jar. Not needed for netbeans.org modules.For external modules, may be needed if you do not have the junit and testtoolsmodules installed in the target platform *or* the developing IDE, and the targetplatform is not inside a netbeans.org build tree (in nbbuild/netbeans).test.unit.src.dir - "test/unit/src"; avoid overriding.test-unit-sys-prop.<NAME> - will set a system property <NAME> when running yourunit tests.test.dist.dir - directory with test distribution. test.unit.folder - output directory for tests of module.test.unit.out.folder - this property can be overriden when you want to change test.unit.folder property.extra.test.libs.dir - directory with extra libraries needed for test run. tools.jar [since 5.0u1] - set to location of tools.jar in active JDK. Useful incase your module needs to compile against JDK-only classes. Meaningless on MacOS X.To support builds of JNLP based applications (described at http://installer.netbeans.org/docs/jnlpInstaller.html) additional may be used or redefined in JNLP-related targets:jnlp.servlet.jar - must point to jnlp-servlet.jar as provided by JDK 1.5 in the directory sample/jnlp/servlet/jnlp-servlet.jar if one wants to build a packaged war file of JNLP version of your suitejnlp.dest.dir - the location where to generate the JNLP files and signed jars. By default it is your ${suite.dir}/build/jnlpjnlp.master.dir - (category='private') is the location of the directory where to generate pieces of master jnlp file that get's then included in its resources sectionjnlp.signjar.alias -jnlp.signjar.keystore - jnlp.signjar.password - allow you to sign your app with your own private key, if unspecified then a default keystore is generated. Nice for trying things for the first time, but not for production, then you very likely want to generate your key and set these propertiesjnlp.signjar.vendor - you can override this to be the default dname for the keystorejnlp.platform.codebase - can point to a shared repository which can be generated by ant -f nbbuild/build.xml build-jnlp Then your war file will contain only modules of your suite and platform modules will be referenced by value of this propertyjnlp.verify.excludes - the default implementation of "jnlp" task in common.xml does verification and compares that all files from module NBM are really referenced from the JNLP file. Sometimes not all of them need to be, for them you can put their full names (relative to your cluster root) into this property and separate them by comma.jnlp.permissions - allows altering of the fragment in the resulting .jnlp file that sets the permissions for individual modules. The default value is <security><all-permissions/></security> If you want to change the default to something else please define the value of the property.[XXX some of the above should be listed in "Suite Properties"]TARGETS AVAILABLE FOR OVERRIDING IN YOUR build.xml--------------------------------------------------Obscure or mostly internal targets are skipped here, but again examine theactual harness script if in doubt. If you want to keep the originalimplementation and just add a before hook, try e.g. <target name="-pre-javahelp"> <!-- your stuff here --> </target> <target name="javahelp" depends="-pre-javahelp,harness.javahelp"/>(some original targets are projectized-common.* rather than harness.*). If youwant to add an after hook, try e.g. <target name="javahelp" depends="harness.javahelp"> <!-- your stuff here --> </target>basic-init - define some properties such as file locations; enough to do a cleanat least.build-init - define more properties needed for compiling and other build tasks.clean - remove all build products: the "build" directory under your projectdirectory, and any files left in the build cluster (including${extra.module.files}).compile - compile Java sources for the module.compile-single - compile selected Java sources (F9).compile-test-single - compile selected unit test classes (F9).debug - build module and then start target platform in debug mode. Use fromwithin the IDE (there is a context menu item for it) to debug the app.debug-fix-nb - loads a hotfix for a module class while debugging. Run -> ApplyCode Changes from the IDE.debug-fix-test-nb - same, for unit test classes.debug-test-single-nb - run one single unit test in the debugger (e.g. to see whyit is failing). Available from the IDE's menus.files-init - define list of files in the NBM fileset. Use ${extra.module.files}rather than overriding this.init - all normal initialization.jar - build the module JAR.jar-prep - prepare to build the module JAR; define ${buildnumber}.javadoc - build module Javadoc.jnlp - generetes the JNLP component file for this module and all necessary resources for it into ${jnlp.dest.dir} directory and also a fragment of the master JNLP into ${jnlp.master.dir}javadoc-nb - same, and open it in a web browser (only from the IDE). Availableas Build -> Generate Javadoc.javahelp - build JavaHelp.nbm - build the NBM. You might override this to give a complex (multipart)license text. Copy basic impl from common.xml and edit.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -