diff options
Diffstat (limited to 'nbproject')
| -rw-r--r-- | nbproject/build-impl.xml | 648 | ||||
| -rw-r--r-- | nbproject/genfiles.properties | 8 | ||||
| -rw-r--r-- | nbproject/project.properties | 57 | ||||
| -rw-r--r-- | nbproject/project.xml | 19 |
4 files changed, 732 insertions, 0 deletions
| diff --git a/nbproject/build-impl.xml b/nbproject/build-impl.xml new file mode 100644 index 0000000..410bc7a --- /dev/null +++ b/nbproject/build-impl.xml | |||
| @@ -0,0 +1,648 @@ | |||
| 1 | <?xml version="1.0" encoding="UTF-8"?> | ||
| 2 | <!-- | ||
| 3 | *** GENERATED FROM project.xml - DO NOT EDIT *** | ||
| 4 | *** EDIT ../build.xml INSTEAD *** | ||
| 5 | |||
| 6 | For the purpose of easier reading the script | ||
| 7 | is divided into following sections: | ||
| 8 | |||
| 9 | - initialization | ||
| 10 | - compilation | ||
| 11 | - jar | ||
| 12 | - execution | ||
| 13 | - debugging | ||
| 14 | - javadoc | ||
| 15 | - junit compilation | ||
| 16 | - junit execution | ||
| 17 | - junit debugging | ||
| 18 | - applet | ||
| 19 | - cleanup | ||
| 20 | |||
| 21 | --> | ||
| 22 | <project xmlns:j2seproject1="http://www.netbeans.org/ns/j2se-project/1" xmlns:j2seproject3="http://www.netbeans.org/ns/j2se-project/3" xmlns:jaxrpc="http://www.netbeans.org/ns/j2se-project/jax-rpc" basedir=".." default="default" name="Four_Puzzle_Library-impl"> | ||
| 23 | <target depends="test,jar,javadoc" description="Build and test whole project." name="default"/> | ||
| 24 | <!-- | ||
| 25 | ====================== | ||
| 26 | INITIALIZATION SECTION | ||
| 27 | ====================== | ||
| 28 | --> | ||
| 29 | <target name="-pre-init"> | ||
| 30 | <!-- Empty placeholder for easier customization. --> | ||
| 31 | <!-- You can override this target in the ../build.xml file. --> | ||
| 32 | </target> | ||
| 33 | <target depends="-pre-init" name="-init-private"> | ||
| 34 | <property file="nbproject/private/config.properties"/> | ||
| 35 | <property file="nbproject/private/configs/${config}.properties"/> | ||
| 36 | <property file="nbproject/private/private.properties"/> | ||
| 37 | </target> | ||
| 38 | <target depends="-pre-init,-init-private" name="-init-libraries"> | ||
| 39 | <property location="./lib/nblibraries.properties" name="libraries.1.path"/> | ||
| 40 | <dirname file="${libraries.1.path}" property="libraries.1.dir.nativedirsep"/> | ||
| 41 | <pathconvert dirsep="/" property="libraries.1.dir"> | ||
| 42 | <path path="${libraries.1.dir.nativedirsep}"/> | ||
| 43 | </pathconvert> | ||
| 44 | <basename file="${libraries.1.path}" property="libraries.1.basename" suffix=".properties"/> | ||
| 45 | <touch file="${libraries.1.dir}/${libraries.1.basename}-private.properties"/> | ||
| 46 | <loadproperties srcfile="${libraries.1.dir}/${libraries.1.basename}-private.properties"> | ||
| 47 | <filterchain> | ||
| 48 | <replacestring from="$${base}" to="${libraries.1.dir}"/> | ||
| 49 | </filterchain> | ||
| 50 | </loadproperties> | ||
| 51 | <loadproperties srcfile="${libraries.1.path}"> | ||
| 52 | <filterchain> | ||
| 53 | <replacestring from="$${base}" to="${libraries.1.dir}"/> | ||
| 54 | </filterchain> | ||
| 55 | </loadproperties> | ||
| 56 | </target> | ||
| 57 | <target depends="-pre-init,-init-private,-init-libraries" name="-init-user"> | ||
| 58 | <property file="${user.properties.file}"/> | ||
| 59 | <!-- The two properties below are usually overridden --> | ||
| 60 | <!-- by the active platform. Just a fallback. --> | ||
| 61 | <property name="default.javac.source" value="1.4"/> | ||
| 62 | <property name="default.javac.target" value="1.4"/> | ||
| 63 | </target> | ||
| 64 | <target depends="-pre-init,-init-private,-init-libraries,-init-user" name="-init-project"> | ||
| 65 | <property file="nbproject/configs/${config}.properties"/> | ||
| 66 | <property file="nbproject/project.properties"/> | ||
| 67 | </target> | ||
| 68 | <target depends="-pre-init,-init-private,-init-libraries,-init-user,-init-project,-init-macrodef-property" name="-do-init"> | ||
| 69 | <available file="${manifest.file}" property="manifest.available"/> | ||
| 70 | <condition property="manifest.available+main.class"> | ||
| 71 | <and> | ||
| 72 | <isset property="manifest.available"/> | ||
| 73 | <isset property="main.class"/> | ||
| 74 | <not> | ||
| 75 | <equals arg1="${main.class}" arg2="" trim="true"/> | ||
| 76 | </not> | ||
| 77 | </and> | ||
| 78 | </condition> | ||
| 79 | <condition property="manifest.available+main.class+mkdist.available"> | ||
| 80 | <and> | ||
| 81 | <istrue value="${manifest.available+main.class}"/> | ||
| 82 | <isset property="libs.CopyLibs.classpath"/> | ||
| 83 | </and> | ||
| 84 | </condition> | ||
| 85 | <condition property="have.tests"> | ||
| 86 | <or> | ||
| 87 | <available file="${test.src.dir}"/> | ||
| 88 | </or> | ||
| 89 | </condition> | ||
| 90 | <condition property="have.sources"> | ||
| 91 | <or> | ||
| 92 | <available file="${src.dir}"/> | ||
| 93 | </or> | ||
| 94 | </condition> | ||
| 95 | <condition property="netbeans.home+have.tests"> | ||
| 96 | <and> | ||
| 97 | <isset property="netbeans.home"/> | ||
| 98 | <isset property="have.tests"/> | ||
| 99 | </and> | ||
| 100 | </condition> | ||
| 101 | <condition property="no.javadoc.preview"> | ||
| 102 | <and> | ||
| 103 | <isset property="javadoc.preview"/> | ||
| 104 | <isfalse value="${javadoc.preview}"/> | ||
| 105 | </and> | ||
| 106 | </condition> | ||
| 107 | <property name="run.jvmargs" value=""/> | ||
| 108 | <property name="javac.compilerargs" value=""/> | ||
| 109 | <property name="work.dir" value="${basedir}"/> | ||
| 110 | <condition property="no.deps"> | ||
| 111 | <and> | ||
| 112 | <istrue value="${no.dependencies}"/> | ||
| 113 | </and> | ||
| 114 | </condition> | ||
| 115 | <property name="javac.debug" value="true"/> | ||
| 116 | <property name="javadoc.preview" value="true"/> | ||
| 117 | <property name="application.args" value=""/> | ||
| 118 | <property name="source.encoding" value="${file.encoding}"/> | ||
| 119 | <condition property="javadoc.encoding.used" value="${javadoc.encoding}"> | ||
| 120 | <and> | ||
| 121 | <isset property="javadoc.encoding"/> | ||
| 122 | <not> | ||
| 123 | <equals arg1="${javadoc.encoding}" arg2=""/> | ||
| 124 | </not> | ||
| 125 | </and> | ||
| 126 | </condition> | ||
| 127 | <property name="javadoc.encoding.used" value="${source.encoding}"/> | ||
| 128 | <property name="includes" value="**"/> | ||
| 129 | <property name="excludes" value=""/> | ||
| 130 | <property name="do.depend" value="false"/> | ||
| 131 | <condition property="do.depend.true"> | ||
| 132 | <istrue value="${do.depend}"/> | ||
| 133 | </condition> | ||
| 134 | <condition else="" property="javac.compilerargs.jaxws" value="-Djava.endorsed.dirs='${jaxws.endorsed.dir}'"> | ||
| 135 | <and> | ||
| 136 | <isset property="jaxws.endorsed.dir"/> | ||
| 137 | <available file="nbproject/jaxws-build.xml"/> | ||
| 138 | </and> | ||
| 139 | </condition> | ||
| 140 | </target> | ||
| 141 | <target name="-post-init"> | ||
| 142 | <!-- Empty placeholder for easier customization. --> | ||
| 143 | <!-- You can override this target in the ../build.xml file. --> | ||
| 144 | </target> | ||
| 145 | <target depends="-pre-init,-init-private,-init-libraries,-init-user,-init-project,-do-init" name="-init-check"> | ||
| 146 | <fail unless="src.dir">Must set src.dir</fail> | ||
| 147 | <fail unless="test.src.dir">Must set test.src.dir</fail> | ||
| 148 | <fail unless="build.dir">Must set build.dir</fail> | ||
| 149 | <fail unless="dist.dir">Must set dist.dir</fail> | ||
| 150 | <fail unless="build.classes.dir">Must set build.classes.dir</fail> | ||
| 151 | <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail> | ||
| 152 | <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail> | ||
| 153 | <fail unless="build.test.results.dir">Must set build.test.results.dir</fail> | ||
| 154 | <fail unless="build.classes.excludes">Must set build.classes.excludes</fail> | ||
| 155 | <fail unless="dist.jar">Must set dist.jar</fail> | ||
| 156 | </target> | ||
| 157 | <target name="-init-macrodef-property"> | ||
| 158 | <macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1"> | ||
| 159 | <attribute name="name"/> | ||
| 160 | <attribute name="value"/> | ||
| 161 | <sequential> | ||
| 162 | <property name="@{name}" value="${@{value}}"/> | ||
| 163 | </sequential> | ||
| 164 | </macrodef> | ||
| 165 | </target> | ||
| 166 | <target name="-init-macrodef-javac"> | ||
| 167 | <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3"> | ||
| 168 | <attribute default="${src.dir}" name="srcdir"/> | ||
| 169 | <attribute default="${build.classes.dir}" name="destdir"/> | ||
| 170 | <attribute default="${javac.classpath}" name="classpath"/> | ||
| 171 | <attribute default="${includes}" name="includes"/> | ||
| 172 | <attribute default="${excludes}" name="excludes"/> | ||
| 173 | <attribute default="${javac.debug}" name="debug"/> | ||
| 174 | <attribute default="" name="sourcepath"/> | ||
| 175 | <element name="customize" optional="true"/> | ||
| 176 | <sequential> | ||
| 177 | <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}"> | ||
| 178 | <classpath> | ||
| 179 | <path path="@{classpath}"/> | ||
| 180 | </classpath> | ||
| 181 | <compilerarg line="${javac.compilerargs} ${javac.compilerargs.jaxws}"/> | ||
| 182 | <customize/> | ||
| 183 | </javac> | ||
| 184 | </sequential> | ||
| 185 | </macrodef> | ||
| 186 | <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3"> | ||
| 187 | <attribute default="${src.dir}" name="srcdir"/> | ||
| 188 | <attribute default="${build.classes.dir}" name="destdir"/> | ||
| 189 | <attribute default="${javac.classpath}" name="classpath"/> | ||
| 190 | <sequential> | ||
| 191 | <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}"> | ||
| 192 | <classpath> | ||
| 193 | <path path="@{classpath}"/> | ||
| 194 | </classpath> | ||
| 195 | </depend> | ||
| 196 | </sequential> | ||
| 197 | </macrodef> | ||
| 198 | <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3"> | ||
| 199 | <attribute default="${build.classes.dir}" name="destdir"/> | ||
| 200 | <sequential> | ||
| 201 | <fail unless="javac.includes">Must set javac.includes</fail> | ||
| 202 | <pathconvert pathsep="," property="javac.includes.binary"> | ||
| 203 | <path> | ||
| 204 | <filelist dir="@{destdir}" files="${javac.includes}"/> | ||
| 205 | </path> | ||
| 206 | <globmapper from="*.java" to="*.class"/> | ||
| 207 | </pathconvert> | ||
| 208 | <delete> | ||
| 209 | <files includes="${javac.includes.binary}"/> | ||
| 210 | </delete> | ||
| 211 | </sequential> | ||
| 212 | </macrodef> | ||
| 213 | </target> | ||
| 214 | <target name="-init-macrodef-junit"> | ||
| 215 | <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3"> | ||
| 216 | <attribute default="${includes}" name="includes"/> | ||
| 217 | <attribute default="${excludes}" name="excludes"/> | ||
| 218 | <attribute default="**" name="testincludes"/> | ||
| 219 | <sequential> | ||
| 220 | <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true"> | ||
| 221 | <batchtest todir="${build.test.results.dir}"> | ||
| 222 | <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}"> | ||
| 223 | <filename name="@{testincludes}"/> | ||
| 224 | </fileset> | ||
| 225 | </batchtest> | ||
| 226 | <classpath> | ||
| 227 | <path path="${run.test.classpath}"/> | ||
| 228 | </classpath> | ||
| 229 | <syspropertyset> | ||
| 230 | <propertyref prefix="test-sys-prop."/> | ||
| 231 | <mapper from="test-sys-prop.*" to="*" type="glob"/> | ||
| 232 | </syspropertyset> | ||
| 233 | <formatter type="brief" usefile="false"/> | ||
| 234 | <formatter type="xml"/> | ||
| 235 | <jvmarg line="${run.jvmargs}"/> | ||
| 236 | </junit> | ||
| 237 | </sequential> | ||
| 238 | </macrodef> | ||
| 239 | </target> | ||
| 240 | <target name="-init-macrodef-nbjpda"> | ||
| 241 | <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1"> | ||
| 242 | <attribute default="${main.class}" name="name"/> | ||
| 243 | <attribute default="${debug.classpath}" name="classpath"/> | ||
| 244 | <attribute default="" name="stopclassname"/> | ||
| 245 | <sequential> | ||
| 246 | <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="dt_socket"> | ||
| 247 | <classpath> | ||
| 248 | <path path="@{classpath}"/> | ||
| 249 | </classpath> | ||
| 250 | </nbjpdastart> | ||
| 251 | </sequential> | ||
| 252 | </macrodef> | ||
| 253 | <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1"> | ||
| 254 | <attribute default="${build.classes.dir}" name="dir"/> | ||
| 255 | <sequential> | ||
| 256 | <nbjpdareload> | ||
| 257 | <fileset dir="@{dir}" includes="${fix.classes}"> | ||
| 258 | <include name="${fix.includes}*.class"/> | ||
| 259 | </fileset> | ||
| 260 | </nbjpdareload> | ||
| 261 | </sequential> | ||
| 262 | </macrodef> | ||
| 263 | </target> | ||
| 264 | <target name="-init-debug-args"> | ||
| 265 | <property name="version-output" value="java version "${ant.java.version}"/> | ||
| 266 | <condition property="have-jdk-older-than-1.4"> | ||
| 267 | <or> | ||
| 268 | <contains string="${version-output}" substring="java version "1.0"/> | ||
| 269 | <contains string="${version-output}" substring="java version "1.1"/> | ||
| 270 | <contains string="${version-output}" substring="java version "1.2"/> | ||
| 271 | <contains string="${version-output}" substring="java version "1.3"/> | ||
| 272 | </or> | ||
| 273 | </condition> | ||
| 274 | <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none"> | ||
| 275 | <istrue value="${have-jdk-older-than-1.4}"/> | ||
| 276 | </condition> | ||
| 277 | </target> | ||
| 278 | <target depends="-init-debug-args" name="-init-macrodef-debug"> | ||
| 279 | <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3"> | ||
| 280 | <attribute default="${main.class}" name="classname"/> | ||
| 281 | <attribute default="${debug.classpath}" name="classpath"/> | ||
| 282 | <element name="customize" optional="true"/> | ||
| 283 | <sequential> | ||
| 284 | <java classname="@{classname}" dir="${work.dir}" fork="true"> | ||
| 285 | <jvmarg line="${debug-args-line}"/> | ||
| 286 | <jvmarg value="-Xrunjdwp:transport=dt_socket,address=${jpda.address}"/> | ||
| 287 | <jvmarg line="${run.jvmargs}"/> | ||
| 288 | <classpath> | ||
| 289 | <path path="@{classpath}"/> | ||
| 290 | </classpath> | ||
| 291 | <syspropertyset> | ||
| 292 | <propertyref prefix="run-sys-prop."/> | ||
| 293 | <mapper from="run-sys-prop.*" to="*" type="glob"/> | ||
| 294 | </syspropertyset> | ||
| 295 | <customize/> | ||
| 296 | </java> | ||
| 297 | </sequential> | ||
| 298 | </macrodef> | ||
| 299 | </target> | ||
| 300 | <target name="-init-macrodef-java"> | ||
| 301 | <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1"> | ||
| 302 | <attribute default="${main.class}" name="classname"/> | ||
| 303 | <element name="customize" optional="true"/> | ||
| 304 | <sequential> | ||
| 305 | <java classname="@{classname}" dir="${work.dir}" fork="true"> | ||
| 306 | <jvmarg line="${run.jvmargs}"/> | ||
| 307 | <classpath> | ||
| 308 | <path path="${run.classpath}"/> | ||
| 309 | </classpath> | ||
| 310 | <syspropertyset> | ||
| 311 | <propertyref prefix="run-sys-prop."/> | ||
| 312 | <mapper from="run-sys-prop.*" to="*" type="glob"/> | ||
| 313 | </syspropertyset> | ||
| 314 | <customize/> | ||
| 315 | </java> | ||
| 316 | </sequential> | ||
| 317 | </macrodef> | ||
| 318 | </target> | ||
| 319 | <target name="-init-presetdef-jar"> | ||
| 320 | <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1"> | ||
| 321 | <jar compress="${jar.compress}" jarfile="${dist.jar}"> | ||
| 322 | <j2seproject1:fileset dir="${build.classes.dir}"/> | ||
| 323 | </jar> | ||
| 324 | </presetdef> | ||
| 325 | </target> | ||
| 326 | <target depends="-pre-init,-init-private,-init-libraries,-init-user,-init-project,-do-init,-post-init,-init-check,-init-macrodef-property,-init-macrodef-javac,-init-macrodef-junit,-init-macrodef-nbjpda,-init-macrodef-debug,-init-macrodef-java,-init-presetdef-jar" name="init"/> | ||
| 327 | <!-- | ||
| 328 | =================== | ||
| 329 | COMPILATION SECTION | ||
| 330 | =================== | ||
| 331 | --> | ||
| 332 | <target depends="init" name="deps-jar" unless="no.deps"/> | ||
| 333 | <target depends="init,deps-jar" name="-pre-pre-compile"> | ||
| 334 | <mkdir dir="${build.classes.dir}"/> | ||
| 335 | </target> | ||
| 336 | <target name="-pre-compile"> | ||
| 337 | <!-- Empty placeholder for easier customization. --> | ||
| 338 | <!-- You can override this target in the ../build.xml file. --> | ||
| 339 | </target> | ||
| 340 | <target if="do.depend.true" name="-compile-depend"> | ||
| 341 | <j2seproject3:depend/> | ||
| 342 | </target> | ||
| 343 | <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-compile-depend" if="have.sources" name="-do-compile"> | ||
| 344 | <j2seproject3:javac/> | ||
| 345 | <copy todir="${build.classes.dir}"> | ||
| 346 | <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/> | ||
| 347 | </copy> | ||
| 348 | </target> | ||
| 349 | <target name="-post-compile"> | ||
| 350 | <!-- Empty placeholder for easier customization. --> | ||
| 351 | <!-- You can override this target in the ../build.xml file. --> | ||
| 352 | </target> | ||
| 353 | <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/> | ||
| 354 | <target name="-pre-compile-single"> | ||
| 355 | <!-- Empty placeholder for easier customization. --> | ||
| 356 | <!-- You can override this target in the ../build.xml file. --> | ||
| 357 | </target> | ||
| 358 | <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single"> | ||
| 359 | <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail> | ||
| 360 | <j2seproject3:force-recompile/> | ||
| 361 | <j2seproject3:javac excludes="" includes="${javac.includes}" sourcepath="${src.dir}"/> | ||
| 362 | </target> | ||
| 363 | <target name="-post-compile-single"> | ||
| 364 | <!-- Empty placeholder for easier customization. --> | ||
| 365 | <!-- You can override this target in the ../build.xml file. --> | ||
| 366 | </target> | ||
| 367 | <target depends="init,deps-jar,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/> | ||
| 368 | <!-- | ||
| 369 | ==================== | ||
| 370 | JAR BUILDING SECTION | ||
| 371 | ==================== | ||
| 372 | --> | ||
| 373 | <target depends="init" name="-pre-pre-jar"> | ||
| 374 | <dirname file="${dist.jar}" property="dist.jar.dir"/> | ||
| 375 | <mkdir dir="${dist.jar.dir}"/> | ||
| 376 | </target> | ||
| 377 | <target name="-pre-jar"> | ||
| 378 | <!-- Empty placeholder for easier customization. --> | ||
| 379 | <!-- You can override this target in the ../build.xml file. --> | ||
| 380 | </target> | ||
| 381 | <target depends="init,compile,-pre-pre-jar,-pre-jar" name="-do-jar-without-manifest" unless="manifest.available"> | ||
| 382 | <j2seproject1:jar/> | ||
| 383 | </target> | ||
| 384 | <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available" name="-do-jar-with-manifest" unless="manifest.available+main.class"> | ||
| 385 | <j2seproject1:jar manifest="${manifest.file}"/> | ||
| 386 | </target> | ||
| 387 | <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+main.class" name="-do-jar-with-mainclass" unless="manifest.available+main.class+mkdist.available"> | ||
| 388 | <j2seproject1:jar manifest="${manifest.file}"> | ||
| 389 | <j2seproject1:manifest> | ||
| 390 | <j2seproject1:attribute name="Main-Class" value="${main.class}"/> | ||
| 391 | </j2seproject1:manifest> | ||
| 392 | </j2seproject1:jar> | ||
| 393 | <echo>To run this application from the command line without Ant, try:</echo> | ||
| 394 | <property location="${build.classes.dir}" name="build.classes.dir.resolved"/> | ||
| 395 | <property location="${dist.jar}" name="dist.jar.resolved"/> | ||
| 396 | <pathconvert property="run.classpath.with.dist.jar"> | ||
| 397 | <path path="${run.classpath}"/> | ||
| 398 | <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/> | ||
| 399 | </pathconvert> | ||
| 400 | <echo>java -cp "${run.classpath.with.dist.jar}" ${main.class}</echo> | ||
| 401 | </target> | ||
| 402 | <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+main.class+mkdist.available" name="-do-jar-with-libraries"> | ||
| 403 | <property location="${build.classes.dir}" name="build.classes.dir.resolved"/> | ||
| 404 | <pathconvert property="run.classpath.without.build.classes.dir"> | ||
| 405 | <path path="${run.classpath}"/> | ||
| 406 | <map from="${build.classes.dir.resolved}" to=""/> | ||
| 407 | </pathconvert> | ||
| 408 | <pathconvert pathsep=" " property="jar.classpath"> | ||
| 409 | <path path="${run.classpath.without.build.classes.dir}"/> | ||
| 410 | <chainedmapper> | ||
| 411 | <flattenmapper/> | ||
| 412 | <globmapper from="*" to="lib/*"/> | ||
| 413 | </chainedmapper> | ||
| 414 | </pathconvert> | ||
| 415 | <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/> | ||
| 416 | <copylibs compress="${jar.compress}" jarfile="${dist.jar}" manifest="${manifest.file}" runtimeclasspath="${run.classpath.without.build.classes.dir}"> | ||
| 417 | <fileset dir="${build.classes.dir}"/> | ||
| 418 | <manifest> | ||
| 419 | <attribute name="Main-Class" value="${main.class}"/> | ||
| 420 | <attribute name="Class-Path" value="${jar.classpath}"/> | ||
| 421 | </manifest> | ||
| 422 | </copylibs> | ||
| 423 | <echo>To run this application from the command line without Ant, try:</echo> | ||
| 424 | <property location="${dist.jar}" name="dist.jar.resolved"/> | ||
| 425 | <echo>java -jar "${dist.jar.resolved}"</echo> | ||
| 426 | </target> | ||
| 427 | <target name="-post-jar"> | ||
| 428 | <!-- Empty placeholder for easier customization. --> | ||
| 429 | <!-- You can override this target in the ../build.xml file. --> | ||
| 430 | </target> | ||
| 431 | <target depends="init,compile,-pre-jar,-do-jar-with-manifest,-do-jar-without-manifest,-do-jar-with-mainclass,-do-jar-with-libraries,-post-jar" description="Build JAR." name="jar"/> | ||
| 432 | <!-- | ||
| 433 | ================= | ||
| 434 | EXECUTION SECTION | ||
| 435 | ================= | ||
| 436 | --> | ||
| 437 | <target depends="init,compile" description="Run a main class." name="run"> | ||
| 438 | <j2seproject1:java> | ||
| 439 | <customize> | ||
| 440 | <arg line="${application.args}"/> | ||
| 441 | </customize> | ||
| 442 | </j2seproject1:java> | ||
| 443 | </target> | ||
| 444 | <target name="-do-not-recompile"> | ||
| 445 | <property name="javac.includes.binary" value=""/> | ||
| 446 | </target> | ||
| 447 | <target depends="init,-do-not-recompile,compile-single" name="run-single"> | ||
| 448 | <fail unless="run.class">Must select one file in the IDE or set run.class</fail> | ||
| 449 | <j2seproject1:java classname="${run.class}"/> | ||
| 450 | </target> | ||
| 451 | <!-- | ||
| 452 | ================= | ||
| 453 | DEBUGGING SECTION | ||
| 454 | ================= | ||
| 455 | --> | ||
| 456 | <target depends="init" if="netbeans.home" name="-debug-start-debugger"> | ||
| 457 | <j2seproject1:nbjpdastart name="${debug.class}"/> | ||
| 458 | </target> | ||
| 459 | <target depends="init,compile" name="-debug-start-debuggee"> | ||
| 460 | <j2seproject3:debug> | ||
| 461 | <customize> | ||
| 462 | <arg line="${application.args}"/> | ||
| 463 | </customize> | ||
| 464 | </j2seproject3:debug> | ||
| 465 | </target> | ||
| 466 | <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/> | ||
| 467 | <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto"> | ||
| 468 | <j2seproject1:nbjpdastart stopclassname="${main.class}"/> | ||
| 469 | </target> | ||
| 470 | <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/> | ||
| 471 | <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single"> | ||
| 472 | <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail> | ||
| 473 | <j2seproject3:debug classname="${debug.class}"/> | ||
| 474 | </target> | ||
| 475 | <target depends="init,-do-not-recompile,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/> | ||
| 476 | <target depends="init" name="-pre-debug-fix"> | ||
| 477 | <fail unless="fix.includes">Must set fix.includes</fail> | ||
| 478 | <property name="javac.includes" value="${fix.includes}.java"/> | ||
| 479 | </target> | ||
| 480 | <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix"> | ||
| 481 | <j2seproject1:nbjpdareload/> | ||
| 482 | </target> | ||
| 483 | <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/> | ||
| 484 | <!-- | ||
| 485 | =============== | ||
| 486 | JAVADOC SECTION | ||
| 487 | =============== | ||
| 488 | --> | ||
| 489 | <target depends="init" name="-javadoc-build"> | ||
| 490 | <mkdir dir="${dist.javadoc.dir}"/> | ||
| 491 | <javadoc additionalparam="${javadoc.additionalparam}" author="${javadoc.author}" charset="UTF-8" destdir="${dist.javadoc.dir}" docencoding="UTF-8" encoding="${javadoc.encoding.used}" failonerror="true" noindex="${javadoc.noindex}" nonavbar="${javadoc.nonavbar}" notree="${javadoc.notree}" private="${javadoc.private}" source="${javac.source}" splitindex="${javadoc.splitindex}" use="${javadoc.use}" useexternalfile="true" version="${javadoc.version}" windowtitle="${javadoc.windowtitle}"> | ||
| 492 | <classpath> | ||
| 493 | <path path="${javac.classpath}"/> | ||
| 494 | </classpath> | ||
| 495 | <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}"> | ||
| 496 | <filename name="**/*.java"/> | ||
| 497 | </fileset> | ||
| 498 | </javadoc> | ||
| 499 | </target> | ||
| 500 | <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview"> | ||
| 501 | <nbbrowse file="${dist.javadoc.dir}/index.html"/> | ||
| 502 | </target> | ||
| 503 | <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/> | ||
| 504 | <!-- | ||
| 505 | ========================= | ||
| 506 | JUNIT COMPILATION SECTION | ||
| 507 | ========================= | ||
| 508 | --> | ||
| 509 | <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test"> | ||
| 510 | <mkdir dir="${build.test.classes.dir}"/> | ||
| 511 | </target> | ||
| 512 | <target name="-pre-compile-test"> | ||
| 513 | <!-- Empty placeholder for easier customization. --> | ||
| 514 | <!-- You can override this target in the ../build.xml file. --> | ||
| 515 | </target> | ||
| 516 | <target if="do.depend.true" name="-compile-test-depend"> | ||
| 517 | <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/> | ||
| 518 | </target> | ||
| 519 | <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test"> | ||
| 520 | <j2seproject3:javac classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/> | ||
| 521 | <copy todir="${build.test.classes.dir}"> | ||
| 522 | <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/> | ||
| 523 | </copy> | ||
| 524 | </target> | ||
| 525 | <target name="-post-compile-test"> | ||
| 526 | <!-- Empty placeholder for easier customization. --> | ||
| 527 | <!-- You can override this target in the ../build.xml file. --> | ||
| 528 | </target> | ||
| 529 | <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/> | ||
| 530 | <target name="-pre-compile-test-single"> | ||
| 531 | <!-- Empty placeholder for easier customization. --> | ||
| 532 | <!-- You can override this target in the ../build.xml file. --> | ||
| 533 | </target> | ||
| 534 | <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single"> | ||
| 535 | <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail> | ||
| 536 | <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/> | ||
| 537 | <j2seproject3:javac classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}" sourcepath="${test.src.dir}" srcdir="${test.src.dir}"/> | ||
| 538 | <copy todir="${build.test.classes.dir}"> | ||
| 539 | <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/> | ||
| 540 | </copy> | ||
| 541 | </target> | ||
| 542 | <target name="-post-compile-test-single"> | ||
| 543 | <!-- Empty placeholder for easier customization. --> | ||
| 544 | <!-- You can override this target in the ../build.xml file. --> | ||
| 545 | </target> | ||
| 546 | <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/> | ||
| 547 | <!-- | ||
| 548 | ======================= | ||
| 549 | JUNIT EXECUTION SECTION | ||
| 550 | ======================= | ||
| 551 | --> | ||
| 552 | <target depends="init" if="have.tests" name="-pre-test-run"> | ||
| 553 | <mkdir dir="${build.test.results.dir}"/> | ||
| 554 | </target> | ||
| 555 | <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run"> | ||
| 556 | <j2seproject3:junit testincludes="**/*Test.java"/> | ||
| 557 | </target> | ||
| 558 | <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run"> | ||
| 559 | <fail if="tests.failed">Some tests failed; see details above.</fail> | ||
| 560 | </target> | ||
| 561 | <target depends="init" if="have.tests" name="test-report"/> | ||
| 562 | <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/> | ||
| 563 | <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/> | ||
| 564 | <target depends="init" if="have.tests" name="-pre-test-run-single"> | ||
| 565 | <mkdir dir="${build.test.results.dir}"/> | ||
| 566 | </target> | ||
| 567 | <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single"> | ||
| 568 | <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail> | ||
| 569 | <j2seproject3:junit excludes="" includes="${test.includes}"/> | ||
| 570 | </target> | ||
| 571 | <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single"> | ||
| 572 | <fail if="tests.failed">Some tests failed; see details above.</fail> | ||
| 573 | </target> | ||
| 574 | <target depends="init,-do-not-recompile,compile-test-single,-pre-test-run-single,-do-test-run-single,-post-test-run-single" description="Run single unit test." name="test-single"/> | ||
| 575 | <!-- | ||
| 576 | ======================= | ||
| 577 | JUNIT DEBUGGING SECTION | ||
| 578 | ======================= | ||
| 579 | --> | ||
| 580 | <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test"> | ||
| 581 | <fail unless="test.class">Must select one file in the IDE or set test.class</fail> | ||
| 582 | <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/> | ||
| 583 | <delete file="${test.report.file}"/> | ||
| 584 | <mkdir dir="${build.test.results.dir}"/> | ||
| 585 | <j2seproject3:debug classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner" classpath="${ant.home}/lib/ant.jar:${ant.home}/lib/ant-junit.jar:${debug.test.classpath}"> | ||
| 586 | <customize> | ||
| 587 | <syspropertyset> | ||
| 588 | <propertyref prefix="test-sys-prop."/> | ||
| 589 | <mapper from="test-sys-prop.*" to="*" type="glob"/> | ||
| 590 | </syspropertyset> | ||
| 591 | <arg value="${test.class}"/> | ||
| 592 | <arg value="showoutput=true"/> | ||
| 593 | <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/> | ||
| 594 | <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/> | ||
| 595 | </customize> | ||
| 596 | </j2seproject3:debug> | ||
| 597 | </target> | ||
| 598 | <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test"> | ||
| 599 | <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/> | ||
| 600 | </target> | ||
| 601 | <target depends="init,-do-not-recompile,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/> | ||
| 602 | <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test"> | ||
| 603 | <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/> | ||
| 604 | </target> | ||
| 605 | <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/> | ||
| 606 | <!-- | ||
| 607 | ========================= | ||
| 608 | APPLET EXECUTION SECTION | ||
| 609 | ========================= | ||
| 610 | --> | ||
| 611 | <target depends="init,compile-single" name="run-applet"> | ||
| 612 | <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail> | ||
| 613 | <j2seproject1:java classname="sun.applet.AppletViewer"> | ||
| 614 | <customize> | ||
| 615 | <arg value="${applet.url}"/> | ||
| 616 | </customize> | ||
| 617 | </j2seproject1:java> | ||
| 618 | </target> | ||
| 619 | <!-- | ||
| 620 | ========================= | ||
| 621 | APPLET DEBUGGING SECTION | ||
| 622 | ========================= | ||
| 623 | --> | ||
| 624 | <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet"> | ||
| 625 | <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail> | ||
| 626 | <j2seproject3:debug classname="sun.applet.AppletViewer"> | ||
| 627 | <customize> | ||
| 628 | <arg value="${applet.url}"/> | ||
| 629 | </customize> | ||
| 630 | </j2seproject3:debug> | ||
| 631 | </target> | ||
| 632 | <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/> | ||
| 633 | <!-- | ||
| 634 | =============== | ||
| 635 | CLEANUP SECTION | ||
| 636 | =============== | ||
| 637 | --> | ||
| 638 | <target depends="init" name="deps-clean" unless="no.deps"/> | ||
| 639 | <target depends="init" name="-do-clean"> | ||
| 640 | <delete dir="${build.dir}"/> | ||
| 641 | <delete dir="${dist.dir}"/> | ||
| 642 | </target> | ||
| 643 | <target name="-post-clean"> | ||
| 644 | <!-- Empty placeholder for easier customization. --> | ||
| 645 | <!-- You can override this target in the ../build.xml file. --> | ||
| 646 | </target> | ||
| 647 | <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/> | ||
| 648 | </project> | ||
| diff --git a/nbproject/genfiles.properties b/nbproject/genfiles.properties new file mode 100644 index 0000000..5921ab8 --- /dev/null +++ b/nbproject/genfiles.properties | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | build.xml.data.CRC32=15d90fc1 | ||
| 2 | build.xml.script.CRC32=31caef79 | ||
| 3 | build.xml.stylesheet.CRC32=be360661 | ||
| 4 | # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. | ||
| 5 | # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. | ||
| 6 | nbproject/build-impl.xml.data.CRC32=15d90fc1 | ||
| 7 | nbproject/build-impl.xml.script.CRC32=3013fcc1 | ||
| 8 | nbproject/build-impl.xml.stylesheet.CRC32=487672f9 | ||
| diff --git a/nbproject/project.properties b/nbproject/project.properties new file mode 100644 index 0000000..b2203f4 --- /dev/null +++ b/nbproject/project.properties | |||
| @@ -0,0 +1,57 @@ | |||
| 1 | build.classes.dir=${build.dir}/classes | ||
| 2 | build.classes.excludes=**/*.java,**/*.form | ||
| 3 | # This directory is removed when the project is cleaned: | ||
| 4 | build.dir=build | ||
| 5 | build.generated.dir=${build.dir}/generated | ||
| 6 | # Only compile against the classpath explicitly listed here: | ||
| 7 | build.sysclasspath=ignore | ||
| 8 | build.test.classes.dir=${build.dir}/test/classes | ||
| 9 | build.test.results.dir=${build.dir}/test/results | ||
| 10 | debug.classpath=\ | ||
| 11 | ${run.classpath} | ||
| 12 | debug.test.classpath=\ | ||
| 13 | ${run.test.classpath} | ||
| 14 | # This directory is removed when the project is cleaned: | ||
| 15 | dist.dir=dist | ||
| 16 | dist.jar=${dist.dir}/Four_Puzzle_Library.jar | ||
| 17 | dist.javadoc.dir=${dist.dir}/javadoc | ||
| 18 | excludes= | ||
| 19 | includes=** | ||
| 20 | jar.compress=false | ||
| 21 | javac.classpath= | ||
| 22 | # Space-separated list of extra javac options | ||
| 23 | javac.compilerargs= | ||
| 24 | javac.deprecation=false | ||
| 25 | javac.source=1.5 | ||
| 26 | javac.target=1.5 | ||
| 27 | javac.test.classpath=\ | ||
| 28 | ${javac.classpath}:\ | ||
| 29 | ${build.classes.dir}:\ | ||
| 30 | ${libs.junit.classpath}:\ | ||
| 31 | ${libs.junit_4.classpath} | ||
| 32 | javadoc.additionalparam= | ||
| 33 | javadoc.author=false | ||
| 34 | javadoc.encoding=${source.encoding} | ||
| 35 | javadoc.noindex=false | ||
| 36 | javadoc.nonavbar=false | ||
| 37 | javadoc.notree=false | ||
| 38 | javadoc.private=false | ||
| 39 | javadoc.splitindex=true | ||
| 40 | javadoc.use=true | ||
| 41 | javadoc.version=false | ||
| 42 | javadoc.windowtitle= | ||
| 43 | meta.inf.dir=${src.dir}/META-INF | ||
| 44 | platform.active=default_platform | ||
| 45 | run.classpath=\ | ||
| 46 | ${javac.classpath}:\ | ||
| 47 | ${build.classes.dir} | ||
| 48 | # Space-separated list of JVM arguments used when running the project | ||
| 49 | # (you may also define separate properties like run-sys-prop.name=value instead of -Dname=value | ||
| 50 | # or test-sys-prop.name=value to set system properties for unit tests): | ||
| 51 | run.jvmargs= | ||
| 52 | run.test.classpath=\ | ||
| 53 | ${javac.test.classpath}:\ | ||
| 54 | ${build.test.classes.dir} | ||
| 55 | source.encoding=UTF-8 | ||
| 56 | src.dir=src | ||
| 57 | test.src.dir=test | ||
| diff --git a/nbproject/project.xml b/nbproject/project.xml new file mode 100644 index 0000000..3633f01 --- /dev/null +++ b/nbproject/project.xml | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | <?xml version="1.0" encoding="UTF-8"?> | ||
| 2 | <project xmlns="http://www.netbeans.org/ns/project/1"> | ||
| 3 | <type>org.netbeans.modules.java.j2seproject</type> | ||
| 4 | <configuration> | ||
| 5 | <data xmlns="http://www.netbeans.org/ns/j2se-project/3"> | ||
| 6 | <name>Four Puzzle Library</name> | ||
| 7 | <minimum-ant-version>1.6.5</minimum-ant-version> | ||
| 8 | <source-roots> | ||
| 9 | <root id="src.dir"/> | ||
| 10 | </source-roots> | ||
| 11 | <test-roots> | ||
| 12 | <root id="test.src.dir"/> | ||
| 13 | </test-roots> | ||
| 14 | </data> | ||
| 15 | <libraries xmlns="http://www.netbeans.org/ns/ant-project-libraries/1"> | ||
| 16 | <definitions>./lib/nblibraries.properties</definitions> | ||
| 17 | </libraries> | ||
| 18 | </configuration> | ||
| 19 | </project> | ||
