1.1 --- a/remoting/server/hudson/pom.xml Mon Jun 27 10:09:34 2011 +0200
1.2 +++ b/remoting/server/hudson/pom.xml Mon Jun 27 18:32:06 2011 +0200
1.3 @@ -3,9 +3,8 @@
1.4 <name>Jackpot 3.0 Hudson Plugin</name>
1.5 <parent>
1.6 <groupId>org.jvnet.hudson.plugins</groupId>
1.7 - <artifactId>plugin</artifactId>
1.8 - <version>1.343</version><!-- which version of Hudson is this plugin built against? -->
1.9 - <relativePath>../pom.xml</relativePath>
1.10 + <artifactId>hudson-plugin-parent</artifactId>
1.11 + <version>2.0.0</version><!-- which version of Hudson is this plugin built against? -->
1.12 </parent>
1.13
1.14 <groupId>org.netbeans.modules.jackpot30.hudson</groupId>
2.1 --- a/remoting/server/indexer/nbproject/project.properties Mon Jun 27 10:09:34 2011 +0200
2.2 +++ b/remoting/server/indexer/nbproject/project.properties Mon Jun 27 18:32:06 2011 +0200
2.3 @@ -2,5 +2,7 @@
2.4 app.name=indexer
2.5 branding.token=${app.name}
2.6 modules=\
2.7 - ${project.org.netbeans.modules.jackpot30.backend.impl}
2.8 + ${project.org.netbeans.modules.jackpot30.backend.impl}:\
2.9 + ${project.org.netbeans.modules.jackpot30.indexer.source}
2.10 project.org.netbeans.modules.jackpot30.backend.impl=impl
2.11 +project.org.netbeans.modules.jackpot30.indexer.source=source
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
3.2 +++ b/remoting/server/indexer/source/build.xml Mon Jun 27 18:32:06 2011 +0200
3.3 @@ -0,0 +1,8 @@
3.4 +<?xml version="1.0" encoding="UTF-8"?>
3.5 +<!-- You may freely edit this file. See harness/README in the NetBeans platform -->
3.6 +<!-- for some information on what you could do (e.g. targets to override). -->
3.7 +<!-- If you delete this file and reopen the project it will be recreated. -->
3.8 +<project name="org.netbeans.modules.jackpot30.indexer.source" default="netbeans" basedir=".">
3.9 + <description>Builds, tests, and runs the project org.netbeans.modules.jackpot30.indexer.source.</description>
3.10 + <import file="nbproject/build-impl.xml"/>
3.11 +</project>
4.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
4.2 +++ b/remoting/server/indexer/source/manifest.mf Mon Jun 27 18:32:06 2011 +0200
4.3 @@ -0,0 +1,5 @@
4.4 +Manifest-Version: 1.0
4.5 +OpenIDE-Module: org.netbeans.modules.jackpot30.indexer.source
4.6 +OpenIDE-Module-Localizing-Bundle: org/netbeans/modules/jackpot30/indexer/source/Bundle.properties
4.7 +OpenIDE-Module-Specification-Version: 1.0
4.8 +
5.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
5.2 +++ b/remoting/server/indexer/source/nbproject/build-impl.xml Mon Jun 27 18:32:06 2011 +0200
5.3 @@ -0,0 +1,45 @@
5.4 +<?xml version="1.0" encoding="UTF-8"?>
5.5 +<!--
5.6 +*** GENERATED FROM project.xml - DO NOT EDIT ***
5.7 +*** EDIT ../build.xml INSTEAD ***
5.8 +-->
5.9 +<project name="org.netbeans.modules.jackpot30.indexer.source-impl" basedir="..">
5.10 + <fail message="Please build using Ant 1.7.1 or higher.">
5.11 + <condition>
5.12 + <not>
5.13 + <antversion atleast="1.7.1"/>
5.14 + </not>
5.15 + </condition>
5.16 + </fail>
5.17 + <property file="nbproject/private/suite-private.properties"/>
5.18 + <property file="nbproject/suite.properties"/>
5.19 + <fail unless="suite.dir">You must set 'suite.dir' to point to your containing module suite</fail>
5.20 + <property file="${suite.dir}/nbproject/private/platform-private.properties"/>
5.21 + <property file="${suite.dir}/nbproject/platform.properties"/>
5.22 + <macrodef name="property" uri="http://www.netbeans.org/ns/nb-module-project/2">
5.23 + <attribute name="name"/>
5.24 + <attribute name="value"/>
5.25 + <sequential>
5.26 + <property name="@{name}" value="${@{value}}"/>
5.27 + </sequential>
5.28 + </macrodef>
5.29 + <macrodef name="evalprops" uri="http://www.netbeans.org/ns/nb-module-project/2">
5.30 + <attribute name="property"/>
5.31 + <attribute name="value"/>
5.32 + <sequential>
5.33 + <property name="@{property}" value="@{value}"/>
5.34 + </sequential>
5.35 + </macrodef>
5.36 + <property file="${user.properties.file}"/>
5.37 + <nbmproject2:property name="harness.dir" value="nbplatform.${nbplatform.active}.harness.dir" xmlns:nbmproject2="http://www.netbeans.org/ns/nb-module-project/2"/>
5.38 + <nbmproject2:property name="nbplatform.active.dir" value="nbplatform.${nbplatform.active}.netbeans.dest.dir" xmlns:nbmproject2="http://www.netbeans.org/ns/nb-module-project/2"/>
5.39 + <nbmproject2:evalprops property="cluster.path.evaluated" value="${cluster.path}" xmlns:nbmproject2="http://www.netbeans.org/ns/nb-module-project/2"/>
5.40 + <fail message="Path to 'platform' cluster missing in $${cluster.path} property or using corrupt Netbeans Platform (missing harness).">
5.41 + <condition>
5.42 + <not>
5.43 + <contains string="${cluster.path.evaluated}" substring="platform"/>
5.44 + </not>
5.45 + </condition>
5.46 + </fail>
5.47 + <import file="${harness.dir}/build.xml"/>
5.48 +</project>
6.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
6.2 +++ b/remoting/server/indexer/source/nbproject/genfiles.properties Mon Jun 27 18:32:06 2011 +0200
6.3 @@ -0,0 +1,8 @@
6.4 +build.xml.data.CRC32=b606330f
6.5 +build.xml.script.CRC32=aab17f8c
6.6 +build.xml.stylesheet.CRC32=a56c6a5b@1.47
6.7 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
6.8 +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
6.9 +nbproject/build-impl.xml.data.CRC32=b606330f
6.10 +nbproject/build-impl.xml.script.CRC32=279e9fd9
6.11 +nbproject/build-impl.xml.stylesheet.CRC32=238281d1@1.47
7.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
7.2 +++ b/remoting/server/indexer/source/nbproject/project.properties Mon Jun 27 18:32:06 2011 +0200
7.3 @@ -0,0 +1,2 @@
7.4 +javac.source=1.6
7.5 +javac.compilerargs=-Xlint -Xlint:-serial
8.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
8.2 +++ b/remoting/server/indexer/source/nbproject/project.xml Mon Jun 27 18:32:06 2011 +0200
8.3 @@ -0,0 +1,57 @@
8.4 +<?xml version="1.0" encoding="UTF-8"?>
8.5 +<project xmlns="http://www.netbeans.org/ns/project/1">
8.6 + <type>org.netbeans.modules.apisupport.project</type>
8.7 + <configuration>
8.8 + <data xmlns="http://www.netbeans.org/ns/nb-module-project/3">
8.9 + <code-name-base>org.netbeans.modules.jackpot30.indexer.source</code-name-base>
8.10 + <suite-component/>
8.11 + <module-dependencies>
8.12 + <dependency>
8.13 + <code-name-base>org.netbeans.libs.lucene</code-name-base>
8.14 + <build-prerequisite/>
8.15 + <compile-dependency/>
8.16 + <run-dependency>
8.17 + <release-version>3</release-version>
8.18 + <specification-version>3.3</specification-version>
8.19 + </run-dependency>
8.20 + </dependency>
8.21 + <dependency>
8.22 + <code-name-base>org.netbeans.modules.editor.mimelookup</code-name-base>
8.23 + <build-prerequisite/>
8.24 + <compile-dependency/>
8.25 + <run-dependency>
8.26 + <release-version>1</release-version>
8.27 + <specification-version>1.23</specification-version>
8.28 + </run-dependency>
8.29 + </dependency>
8.30 + <dependency>
8.31 + <code-name-base>org.netbeans.modules.parsing.api</code-name-base>
8.32 + <build-prerequisite/>
8.33 + <compile-dependency/>
8.34 + <run-dependency>
8.35 + <release-version>1</release-version>
8.36 + <specification-version>1.43.0.6</specification-version>
8.37 + </run-dependency>
8.38 + </dependency>
8.39 + <dependency>
8.40 + <code-name-base>org.netbeans.modules.parsing.lucene</code-name-base>
8.41 + <build-prerequisite/>
8.42 + <compile-dependency/>
8.43 + <run-dependency>
8.44 + <release-version>2</release-version>
8.45 + <implementation-version/>
8.46 + </run-dependency>
8.47 + </dependency>
8.48 + <dependency>
8.49 + <code-name-base>org.openide.filesystems</code-name-base>
8.50 + <build-prerequisite/>
8.51 + <compile-dependency/>
8.52 + <run-dependency>
8.53 + <specification-version>7.48</specification-version>
8.54 + </run-dependency>
8.55 + </dependency>
8.56 + </module-dependencies>
8.57 + <public-packages/>
8.58 + </data>
8.59 + </configuration>
8.60 +</project>
9.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
9.2 +++ b/remoting/server/indexer/source/nbproject/suite.properties Mon Jun 27 18:32:06 2011 +0200
9.3 @@ -0,0 +1,1 @@
9.4 +suite.dir=${basedir}/..
10.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
10.2 +++ b/remoting/server/indexer/source/src/org/netbeans/modules/jackpot30/indexer/source/Bundle.properties Mon Jun 27 18:32:06 2011 +0200
10.3 @@ -0,0 +1,1 @@
10.4 +OpenIDE-Module-Name=Jackpot 3.0 Source Indexer
11.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
11.2 +++ b/remoting/server/indexer/source/src/org/netbeans/modules/jackpot30/indexer/source/SourceIndexer.java Mon Jun 27 18:32:06 2011 +0200
11.3 @@ -0,0 +1,157 @@
11.4 +/*
11.5 + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
11.6 + *
11.7 + * Copyright 2011 Oracle and/or its affiliates. All rights reserved.
11.8 + *
11.9 + * Oracle and Java are registered trademarks of Oracle and/or its affiliates.
11.10 + * Other names may be trademarks of their respective owners.
11.11 + *
11.12 + * The contents of this file are subject to the terms of either the GNU
11.13 + * General Public License Version 2 only ("GPL") or the Common
11.14 + * Development and Distribution License("CDDL") (collectively, the
11.15 + * "License"). You may not use this file except in compliance with the
11.16 + * License. You can obtain a copy of the License at
11.17 + * http://www.netbeans.org/cddl-gplv2.html
11.18 + * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
11.19 + * specific language governing permissions and limitations under the
11.20 + * License. When distributing the software, include this License Header
11.21 + * Notice in each file and include the License file at
11.22 + * nbbuild/licenses/CDDL-GPL-2-CP. Oracle designates this
11.23 + * particular file as subject to the "Classpath" exception as provided
11.24 + * by Oracle in the GPL Version 2 section of the License file that
11.25 + * accompanied this code. If applicable, add the following below the
11.26 + * License Header, with the fields enclosed by brackets [] replaced by
11.27 + * your own identifying information:
11.28 + * "Portions Copyrighted [year] [name of copyright owner]"
11.29 + *
11.30 + * If you wish your version of this file to be governed by only the CDDL
11.31 + * or only the GPL Version 2, indicate your decision by adding
11.32 + * "[Contributor] elects to include this software in this distribution
11.33 + * under the [CDDL or GPL Version 2] license." If you do not indicate a
11.34 + * single choice of license, a recipient has the option to distribute
11.35 + * your version of this file under either the CDDL, the GPL Version 2 or
11.36 + * to extend the choice of license to its licensees as provided above.
11.37 + * However, if you add GPL Version 2 code and therefore, elected the GPL
11.38 + * Version 2 license, then the option applies only if the new code is
11.39 + * made subject to such option by the copyright holder.
11.40 + *
11.41 + * Contributor(s):
11.42 + *
11.43 + * Portions Copyrighted 2011 Sun Microsystems, Inc.
11.44 + */
11.45 +package org.netbeans.modules.jackpot30.indexer.source;
11.46 +
11.47 +import java.io.BufferedReader;
11.48 +import java.io.IOException;
11.49 +import java.io.InputStreamReader;
11.50 +import java.io.Reader;
11.51 +import java.net.URL;
11.52 +import java.util.logging.Level;
11.53 +import java.util.logging.Logger;
11.54 +import org.netbeans.api.editor.mimelookup.MimeRegistration;
11.55 +import org.netbeans.modules.parsing.lucene.support.DocumentIndex;
11.56 +import org.netbeans.modules.parsing.lucene.support.IndexDocument;
11.57 +import org.netbeans.modules.parsing.lucene.support.IndexManager;
11.58 +import org.netbeans.modules.parsing.spi.indexing.Context;
11.59 +import org.netbeans.modules.parsing.spi.indexing.CustomIndexer;
11.60 +import org.netbeans.modules.parsing.spi.indexing.CustomIndexerFactory;
11.61 +import org.netbeans.modules.parsing.spi.indexing.Indexable;
11.62 +import org.openide.filesystems.FileUtil;
11.63 +
11.64 +/**
11.65 + *
11.66 + * @author lahvac
11.67 + */
11.68 +public class SourceIndexer extends CustomIndexer {
11.69 +
11.70 + private static final String KEY_CONTENT = "content";
11.71 +
11.72 + @Override
11.73 + protected void index(Iterable<? extends Indexable> files, Context context) {
11.74 + try {
11.75 + DocumentIndex idx = IndexManager.createDocumentIndex(FileUtil.toFile(context.getIndexFolder()));
11.76 +
11.77 + for (Indexable i : files) {
11.78 + IndexDocument doc = IndexManager.createDocument(i.getRelativePath());
11.79 +
11.80 + doc.addPair(KEY_CONTENT, readFully(i.getURL()), false, true);
11.81 +
11.82 + idx.addDocument(doc);
11.83 + }
11.84 +
11.85 + idx.store(true);
11.86 + idx.close();
11.87 + } catch (IOException ex) {
11.88 + Logger.getLogger(SourceIndexer.class.getName()).log(Level.SEVERE, null, ex);
11.89 + }
11.90 + }
11.91 +
11.92 + private static String readFully(URL source) throws IOException {
11.93 + Reader in = null;
11.94 + StringBuilder result = new StringBuilder();
11.95 +
11.96 + try {
11.97 + in = new BufferedReader(new InputStreamReader(source.openStream(), "UTF-8"));
11.98 +
11.99 + int read;
11.100 +
11.101 + while ((read = in.read()) != (-1)) {
11.102 + result.append((char) read);
11.103 + }
11.104 + } finally {
11.105 + if (in != null) {
11.106 + try {
11.107 + in.close();
11.108 + } catch (IOException ex) {
11.109 + Logger.getLogger(SourceIndexer.class.getName()).log(Level.SEVERE, null, ex);
11.110 + }
11.111 + }
11.112 + }
11.113 +
11.114 + return result.toString();
11.115 + }
11.116 +
11.117 + @MimeRegistration(mimeType="", service=CustomIndexerFactory.class)
11.118 + public static final class FactoryImpl extends CustomIndexerFactory {
11.119 +
11.120 + @Override
11.121 + public CustomIndexer createIndexer() {
11.122 + return new SourceIndexer();
11.123 + }
11.124 +
11.125 + @Override
11.126 + public boolean supportsEmbeddedIndexers() {
11.127 + return true;
11.128 + }
11.129 +
11.130 + @Override
11.131 + public void filesDeleted(Iterable<? extends Indexable> deleted, Context context) {
11.132 + try {
11.133 + DocumentIndex idx = IndexManager.createDocumentIndex(FileUtil.toFile(context.getIndexFolder()));
11.134 +
11.135 + for (Indexable i : deleted) {
11.136 + idx.removeDocument(i.getRelativePath());
11.137 + }
11.138 +
11.139 + idx.close();
11.140 + } catch (IOException ex) {
11.141 + Logger.getLogger(SourceIndexer.class.getName()).log(Level.SEVERE, null, ex);
11.142 + }
11.143 + }
11.144 +
11.145 + @Override
11.146 + public void filesDirty(Iterable<? extends Indexable> dirty, Context context) {
11.147 + }
11.148 +
11.149 + @Override
11.150 + public String getIndexerName() {
11.151 + return "fullsource";
11.152 + }
11.153 +
11.154 + @Override
11.155 + public int getIndexVersion() {
11.156 + return 1;
11.157 + }
11.158 +
11.159 + }
11.160 +}
12.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
12.2 +++ b/remoting/server/web/source.web.api/build.xml Mon Jun 27 18:32:06 2011 +0200
12.3 @@ -0,0 +1,74 @@
12.4 +<?xml version="1.0" encoding="UTF-8"?>
12.5 +<!-- You may freely edit this file. See commented blocks below for -->
12.6 +<!-- some examples of how to customize the build. -->
12.7 +<!-- (If you delete it and reopen the project it will be recreated.) -->
12.8 +<!-- By default, only the Clean and Build commands use this build script. -->
12.9 +<!-- Commands such as Run, Debug, and Test only use this build script if -->
12.10 +<!-- the Compile on Save feature is turned off for the project. -->
12.11 +<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
12.12 +<!-- in the project's Project Properties dialog box.-->
12.13 +<project name="source.web.api" default="default" basedir=".">
12.14 + <description>Builds, tests, and runs the project source.web.api.</description>
12.15 + <import file="nbproject/build-impl.xml"/>
12.16 + <!--
12.17 +
12.18 + There exist several targets which are by default empty and which can be
12.19 + used for execution of your tasks. These targets are usually executed
12.20 + before and after some main targets. They are:
12.21 +
12.22 + -pre-init: called before initialization of project properties
12.23 + -post-init: called after initialization of project properties
12.24 + -pre-compile: called before javac compilation
12.25 + -post-compile: called after javac compilation
12.26 + -pre-compile-single: called before javac compilation of single file
12.27 + -post-compile-single: called after javac compilation of single file
12.28 + -pre-compile-test: called before javac compilation of JUnit tests
12.29 + -post-compile-test: called after javac compilation of JUnit tests
12.30 + -pre-compile-test-single: called before javac compilation of single JUnit test
12.31 + -post-compile-test-single: called after javac compilation of single JUunit test
12.32 + -pre-jar: called before JAR building
12.33 + -post-jar: called after JAR building
12.34 + -post-clean: called after cleaning build products
12.35 +
12.36 + (Targets beginning with '-' are not intended to be called on their own.)
12.37 +
12.38 + Example of inserting an obfuscator after compilation could look like this:
12.39 +
12.40 + <target name="-post-compile">
12.41 + <obfuscate>
12.42 + <fileset dir="${build.classes.dir}"/>
12.43 + </obfuscate>
12.44 + </target>
12.45 +
12.46 + For list of available properties check the imported
12.47 + nbproject/build-impl.xml file.
12.48 +
12.49 +
12.50 + Another way to customize the build is by overriding existing main targets.
12.51 + The targets of interest are:
12.52 +
12.53 + -init-macrodef-javac: defines macro for javac compilation
12.54 + -init-macrodef-junit: defines macro for junit execution
12.55 + -init-macrodef-debug: defines macro for class debugging
12.56 + -init-macrodef-java: defines macro for class execution
12.57 + -do-jar-with-manifest: JAR building (if you are using a manifest)
12.58 + -do-jar-without-manifest: JAR building (if you are not using a manifest)
12.59 + run: execution of project
12.60 + -javadoc-build: Javadoc generation
12.61 + test-report: JUnit report generation
12.62 +
12.63 + An example of overriding the target for project execution could look like this:
12.64 +
12.65 + <target name="run" depends="source.web.api-impl.jar">
12.66 + <exec dir="bin" executable="launcher.exe">
12.67 + <arg file="${dist.jar}"/>
12.68 + </exec>
12.69 + </target>
12.70 +
12.71 + Notice that the overridden target depends on the jar target and not only on
12.72 + the compile target as the regular run target does. Again, for a list of available
12.73 + properties which you can use, check the target you are overriding in the
12.74 + nbproject/build-impl.xml file.
12.75 +
12.76 + -->
12.77 +</project>
13.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
13.2 +++ b/remoting/server/web/source.web.api/manifest.mf Mon Jun 27 18:32:06 2011 +0200
13.3 @@ -0,0 +1,3 @@
13.4 +Manifest-Version: 1.0
13.5 +X-COMMENT: Main-Class will be added automatically by build
13.6 +
14.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
14.2 +++ b/remoting/server/web/source.web.api/nbproject/build-impl.xml Mon Jun 27 18:32:06 2011 +0200
14.3 @@ -0,0 +1,1082 @@
14.4 +<?xml version="1.0" encoding="UTF-8"?>
14.5 +<!--
14.6 +*** GENERATED FROM project.xml - DO NOT EDIT ***
14.7 +*** EDIT ../build.xml INSTEAD ***
14.8 +
14.9 +For the purpose of easier reading the script
14.10 +is divided into following sections:
14.11 +
14.12 + - initialization
14.13 + - compilation
14.14 + - jar
14.15 + - execution
14.16 + - debugging
14.17 + - javadoc
14.18 + - junit compilation
14.19 + - junit execution
14.20 + - junit debugging
14.21 + - applet
14.22 + - cleanup
14.23 +
14.24 + -->
14.25 +<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="source.web.api-impl">
14.26 + <fail message="Please build using Ant 1.8.0 or higher.">
14.27 + <condition>
14.28 + <not>
14.29 + <antversion atleast="1.8.0"/>
14.30 + </not>
14.31 + </condition>
14.32 + </fail>
14.33 + <target depends="test,jar,javadoc" description="Build and test whole project." name="default"/>
14.34 + <!--
14.35 + ======================
14.36 + INITIALIZATION SECTION
14.37 + ======================
14.38 + -->
14.39 + <target name="-pre-init">
14.40 + <!-- Empty placeholder for easier customization. -->
14.41 + <!-- You can override this target in the ../build.xml file. -->
14.42 + </target>
14.43 + <target depends="-pre-init" name="-init-private">
14.44 + <property file="nbproject/private/config.properties"/>
14.45 + <property file="nbproject/private/configs/${config}.properties"/>
14.46 + <property file="nbproject/private/private.properties"/>
14.47 + </target>
14.48 + <target name="-pre-init-libraries">
14.49 + <property location="../../../../server/lib/nblibraries.properties" name="libraries.path"/>
14.50 + <dirname file="${libraries.path}" property="libraries.dir.nativedirsep"/>
14.51 + <pathconvert dirsep="/" property="libraries.dir">
14.52 + <path path="${libraries.dir.nativedirsep}"/>
14.53 + </pathconvert>
14.54 + <basename file="${libraries.path}" property="libraries.basename" suffix=".properties"/>
14.55 + <available file="${libraries.dir}/${libraries.basename}-private.properties" property="private.properties.available"/>
14.56 + </target>
14.57 + <target depends="-pre-init-libraries" if="private.properties.available" name="-init-private-libraries">
14.58 + <loadproperties encoding="ISO-8859-1" srcfile="${libraries.dir}/${libraries.basename}-private.properties">
14.59 + <filterchain>
14.60 + <replacestring from="$${base}" to="${libraries.dir}"/>
14.61 + <escapeunicode/>
14.62 + </filterchain>
14.63 + </loadproperties>
14.64 + </target>
14.65 + <target depends="-pre-init,-init-private,-init-private-libraries" name="-init-libraries">
14.66 + <loadproperties encoding="ISO-8859-1" srcfile="${libraries.path}">
14.67 + <filterchain>
14.68 + <replacestring from="$${base}" to="${libraries.dir}"/>
14.69 + <escapeunicode/>
14.70 + </filterchain>
14.71 + </loadproperties>
14.72 + </target>
14.73 + <target depends="-pre-init,-init-private,-init-libraries" name="-init-user">
14.74 + <property file="${user.properties.file}"/>
14.75 + <!-- The two properties below are usually overridden -->
14.76 + <!-- by the active platform. Just a fallback. -->
14.77 + <property name="default.javac.source" value="1.4"/>
14.78 + <property name="default.javac.target" value="1.4"/>
14.79 + </target>
14.80 + <target depends="-pre-init,-init-private,-init-libraries,-init-user" name="-init-project">
14.81 + <property file="nbproject/configs/${config}.properties"/>
14.82 + <property file="nbproject/project.properties"/>
14.83 + </target>
14.84 + <target depends="-pre-init,-init-private,-init-libraries,-init-user,-init-project,-init-macrodef-property" name="-do-init">
14.85 + <available file="${manifest.file}" property="manifest.available"/>
14.86 + <condition property="splashscreen.available">
14.87 + <and>
14.88 + <not>
14.89 + <equals arg1="${application.splash}" arg2="" trim="true"/>
14.90 + </not>
14.91 + <available file="${application.splash}"/>
14.92 + </and>
14.93 + </condition>
14.94 + <condition property="main.class.available">
14.95 + <and>
14.96 + <isset property="main.class"/>
14.97 + <not>
14.98 + <equals arg1="${main.class}" arg2="" trim="true"/>
14.99 + </not>
14.100 + </and>
14.101 + </condition>
14.102 + <condition property="manifest.available+main.class">
14.103 + <and>
14.104 + <isset property="manifest.available"/>
14.105 + <isset property="main.class.available"/>
14.106 + </and>
14.107 + </condition>
14.108 + <condition property="do.archive">
14.109 + <not>
14.110 + <istrue value="${jar.archive.disabled}"/>
14.111 + </not>
14.112 + </condition>
14.113 + <condition property="do.mkdist">
14.114 + <and>
14.115 + <isset property="do.archive"/>
14.116 + <isset property="libs.CopyLibs.classpath"/>
14.117 + <not>
14.118 + <istrue value="${mkdist.disabled}"/>
14.119 + </not>
14.120 + </and>
14.121 + </condition>
14.122 + <condition property="manifest.available+main.class+mkdist.available">
14.123 + <and>
14.124 + <istrue value="${manifest.available+main.class}"/>
14.125 + <isset property="do.mkdist"/>
14.126 + </and>
14.127 + </condition>
14.128 + <condition property="do.archive+manifest.available">
14.129 + <and>
14.130 + <isset property="manifest.available"/>
14.131 + <istrue value="${do.archive}"/>
14.132 + </and>
14.133 + </condition>
14.134 + <condition property="do.archive+main.class.available">
14.135 + <and>
14.136 + <isset property="main.class.available"/>
14.137 + <istrue value="${do.archive}"/>
14.138 + </and>
14.139 + </condition>
14.140 + <condition property="do.archive+splashscreen.available">
14.141 + <and>
14.142 + <isset property="splashscreen.available"/>
14.143 + <istrue value="${do.archive}"/>
14.144 + </and>
14.145 + </condition>
14.146 + <condition property="do.archive+manifest.available+main.class">
14.147 + <and>
14.148 + <istrue value="${manifest.available+main.class}"/>
14.149 + <istrue value="${do.archive}"/>
14.150 + </and>
14.151 + </condition>
14.152 + <condition property="manifest.available-mkdist.available">
14.153 + <or>
14.154 + <istrue value="${manifest.available}"/>
14.155 + <isset property="do.mkdist"/>
14.156 + </or>
14.157 + </condition>
14.158 + <condition property="manifest.available+main.class-mkdist.available">
14.159 + <or>
14.160 + <istrue value="${manifest.available+main.class}"/>
14.161 + <isset property="do.mkdist"/>
14.162 + </or>
14.163 + </condition>
14.164 + <condition property="have.tests">
14.165 + <or>
14.166 + <available file="${test.src.dir}"/>
14.167 + </or>
14.168 + </condition>
14.169 + <condition property="have.sources">
14.170 + <or>
14.171 + <available file="${src.dir}"/>
14.172 + </or>
14.173 + </condition>
14.174 + <condition property="netbeans.home+have.tests">
14.175 + <and>
14.176 + <isset property="netbeans.home"/>
14.177 + <isset property="have.tests"/>
14.178 + </and>
14.179 + </condition>
14.180 + <condition property="no.javadoc.preview">
14.181 + <and>
14.182 + <isset property="javadoc.preview"/>
14.183 + <isfalse value="${javadoc.preview}"/>
14.184 + </and>
14.185 + </condition>
14.186 + <property name="run.jvmargs" value=""/>
14.187 + <property name="javac.compilerargs" value=""/>
14.188 + <property name="work.dir" value="${basedir}"/>
14.189 + <condition property="no.deps">
14.190 + <and>
14.191 + <istrue value="${no.dependencies}"/>
14.192 + </and>
14.193 + </condition>
14.194 + <property name="javac.debug" value="true"/>
14.195 + <property name="javadoc.preview" value="true"/>
14.196 + <property name="application.args" value=""/>
14.197 + <property name="source.encoding" value="${file.encoding}"/>
14.198 + <property name="runtime.encoding" value="${source.encoding}"/>
14.199 + <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
14.200 + <and>
14.201 + <isset property="javadoc.encoding"/>
14.202 + <not>
14.203 + <equals arg1="${javadoc.encoding}" arg2=""/>
14.204 + </not>
14.205 + </and>
14.206 + </condition>
14.207 + <property name="javadoc.encoding.used" value="${source.encoding}"/>
14.208 + <property name="includes" value="**"/>
14.209 + <property name="excludes" value=""/>
14.210 + <property name="do.depend" value="false"/>
14.211 + <condition property="do.depend.true">
14.212 + <istrue value="${do.depend}"/>
14.213 + </condition>
14.214 + <path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
14.215 + <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
14.216 + <length length="0" string="${endorsed.classpath}" when="greater"/>
14.217 + </condition>
14.218 + <condition else="false" property="jdkBug6558476">
14.219 + <and>
14.220 + <matches pattern="1\.[56]" string="${java.specification.version}"/>
14.221 + <not>
14.222 + <os family="unix"/>
14.223 + </not>
14.224 + </and>
14.225 + </condition>
14.226 + <property name="javac.fork" value="${jdkBug6558476}"/>
14.227 + <property name="jar.index" value="false"/>
14.228 + <property name="jar.index.metainf" value="${jar.index}"/>
14.229 + <property name="copylibs.rebase" value="true"/>
14.230 + <available file="${meta.inf.dir}/persistence.xml" property="has.persistence.xml"/>
14.231 + </target>
14.232 + <target name="-post-init">
14.233 + <!-- Empty placeholder for easier customization. -->
14.234 + <!-- You can override this target in the ../build.xml file. -->
14.235 + </target>
14.236 + <target depends="-pre-init,-init-private,-init-libraries,-init-user,-init-project,-do-init" name="-init-check">
14.237 + <fail unless="src.dir">Must set src.dir</fail>
14.238 + <fail unless="test.src.dir">Must set test.src.dir</fail>
14.239 + <fail unless="build.dir">Must set build.dir</fail>
14.240 + <fail unless="dist.dir">Must set dist.dir</fail>
14.241 + <fail unless="build.classes.dir">Must set build.classes.dir</fail>
14.242 + <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
14.243 + <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
14.244 + <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
14.245 + <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
14.246 + <fail unless="dist.jar">Must set dist.jar</fail>
14.247 + </target>
14.248 + <target name="-init-macrodef-property">
14.249 + <macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1">
14.250 + <attribute name="name"/>
14.251 + <attribute name="value"/>
14.252 + <sequential>
14.253 + <property name="@{name}" value="${@{value}}"/>
14.254 + </sequential>
14.255 + </macrodef>
14.256 + </target>
14.257 + <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-macrodef-javac-with-processors">
14.258 + <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
14.259 + <attribute default="${src.dir}" name="srcdir"/>
14.260 + <attribute default="${build.classes.dir}" name="destdir"/>
14.261 + <attribute default="${javac.classpath}" name="classpath"/>
14.262 + <attribute default="${javac.processorpath}" name="processorpath"/>
14.263 + <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
14.264 + <attribute default="${includes}" name="includes"/>
14.265 + <attribute default="${excludes}" name="excludes"/>
14.266 + <attribute default="${javac.debug}" name="debug"/>
14.267 + <attribute default="${empty.dir}" name="sourcepath"/>
14.268 + <attribute default="${empty.dir}" name="gensrcdir"/>
14.269 + <element name="customize" optional="true"/>
14.270 + <sequential>
14.271 + <property location="${build.dir}/empty" name="empty.dir"/>
14.272 + <mkdir dir="${empty.dir}"/>
14.273 + <mkdir dir="@{apgeneratedsrcdir}"/>
14.274 + <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" fork="${javac.fork}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}">
14.275 + <src>
14.276 + <dirset dir="@{gensrcdir}" erroronmissingdir="false">
14.277 + <include name="*"/>
14.278 + </dirset>
14.279 + </src>
14.280 + <classpath>
14.281 + <path path="@{classpath}"/>
14.282 + </classpath>
14.283 + <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
14.284 + <compilerarg line="${javac.compilerargs}"/>
14.285 + <compilerarg value="-processorpath"/>
14.286 + <compilerarg path="@{processorpath}:${empty.dir}"/>
14.287 + <compilerarg line="${ap.processors.internal}"/>
14.288 + <compilerarg line="${annotation.processing.processor.options}"/>
14.289 + <compilerarg value="-s"/>
14.290 + <compilerarg path="@{apgeneratedsrcdir}"/>
14.291 + <compilerarg line="${ap.proc.none.internal}"/>
14.292 + <customize/>
14.293 + </javac>
14.294 + </sequential>
14.295 + </macrodef>
14.296 + </target>
14.297 + <target depends="-init-ap-cmdline-properties" name="-init-macrodef-javac-without-processors" unless="ap.supported.internal">
14.298 + <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
14.299 + <attribute default="${src.dir}" name="srcdir"/>
14.300 + <attribute default="${build.classes.dir}" name="destdir"/>
14.301 + <attribute default="${javac.classpath}" name="classpath"/>
14.302 + <attribute default="${javac.processorpath}" name="processorpath"/>
14.303 + <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
14.304 + <attribute default="${includes}" name="includes"/>
14.305 + <attribute default="${excludes}" name="excludes"/>
14.306 + <attribute default="${javac.debug}" name="debug"/>
14.307 + <attribute default="${empty.dir}" name="sourcepath"/>
14.308 + <attribute default="${empty.dir}" name="gensrcdir"/>
14.309 + <element name="customize" optional="true"/>
14.310 + <sequential>
14.311 + <property location="${build.dir}/empty" name="empty.dir"/>
14.312 + <mkdir dir="${empty.dir}"/>
14.313 + <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" fork="${javac.fork}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}">
14.314 + <src>
14.315 + <dirset dir="@{gensrcdir}" erroronmissingdir="false">
14.316 + <include name="*"/>
14.317 + </dirset>
14.318 + </src>
14.319 + <classpath>
14.320 + <path path="@{classpath}"/>
14.321 + </classpath>
14.322 + <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
14.323 + <compilerarg line="${javac.compilerargs}"/>
14.324 + <customize/>
14.325 + </javac>
14.326 + </sequential>
14.327 + </macrodef>
14.328 + </target>
14.329 + <target depends="-init-macrodef-javac-with-processors,-init-macrodef-javac-without-processors" name="-init-macrodef-javac">
14.330 + <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3">
14.331 + <attribute default="${src.dir}" name="srcdir"/>
14.332 + <attribute default="${build.classes.dir}" name="destdir"/>
14.333 + <attribute default="${javac.classpath}" name="classpath"/>
14.334 + <sequential>
14.335 + <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
14.336 + <classpath>
14.337 + <path path="@{classpath}"/>
14.338 + </classpath>
14.339 + </depend>
14.340 + </sequential>
14.341 + </macrodef>
14.342 + <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3">
14.343 + <attribute default="${build.classes.dir}" name="destdir"/>
14.344 + <sequential>
14.345 + <fail unless="javac.includes">Must set javac.includes</fail>
14.346 + <pathconvert pathsep="${line.separator}" property="javac.includes.binary">
14.347 + <path>
14.348 + <filelist dir="@{destdir}" files="${javac.includes}"/>
14.349 + </path>
14.350 + <globmapper from="*.java" to="*.class"/>
14.351 + </pathconvert>
14.352 + <tempfile deleteonexit="true" property="javac.includesfile.binary"/>
14.353 + <echo file="${javac.includesfile.binary}" message="${javac.includes.binary}"/>
14.354 + <delete>
14.355 + <files includesfile="${javac.includesfile.binary}"/>
14.356 + </delete>
14.357 + <delete>
14.358 + <fileset file="${javac.includesfile.binary}"/>
14.359 + </delete>
14.360 + </sequential>
14.361 + </macrodef>
14.362 + </target>
14.363 + <target name="-init-macrodef-junit">
14.364 + <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
14.365 + <attribute default="${includes}" name="includes"/>
14.366 + <attribute default="${excludes}" name="excludes"/>
14.367 + <attribute default="**" name="testincludes"/>
14.368 + <sequential>
14.369 + <property name="junit.forkmode" value="perTest"/>
14.370 + <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
14.371 + <batchtest todir="${build.test.results.dir}">
14.372 + <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
14.373 + <filename name="@{testincludes}"/>
14.374 + </fileset>
14.375 + </batchtest>
14.376 + <classpath>
14.377 + <path path="${run.test.classpath}"/>
14.378 + </classpath>
14.379 + <syspropertyset>
14.380 + <propertyref prefix="test-sys-prop."/>
14.381 + <mapper from="test-sys-prop.*" to="*" type="glob"/>
14.382 + </syspropertyset>
14.383 + <formatter type="brief" usefile="false"/>
14.384 + <formatter type="xml"/>
14.385 + <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
14.386 + <jvmarg value="-ea"/>
14.387 + <jvmarg line="${run.jvmargs}"/>
14.388 + </junit>
14.389 + </sequential>
14.390 + </macrodef>
14.391 + </target>
14.392 + <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile, -profile-init-check" name="profile-init"/>
14.393 + <target name="-profile-pre-init">
14.394 + <!-- Empty placeholder for easier customization. -->
14.395 + <!-- You can override this target in the ../build.xml file. -->
14.396 + </target>
14.397 + <target name="-profile-post-init">
14.398 + <!-- Empty placeholder for easier customization. -->
14.399 + <!-- You can override this target in the ../build.xml file. -->
14.400 + </target>
14.401 + <target name="-profile-init-macrodef-profile">
14.402 + <macrodef name="resolve">
14.403 + <attribute name="name"/>
14.404 + <attribute name="value"/>
14.405 + <sequential>
14.406 + <property name="@{name}" value="${env.@{value}}"/>
14.407 + </sequential>
14.408 + </macrodef>
14.409 + <macrodef name="profile">
14.410 + <attribute default="${main.class}" name="classname"/>
14.411 + <element name="customize" optional="true"/>
14.412 + <sequential>
14.413 + <property environment="env"/>
14.414 + <resolve name="profiler.current.path" value="${profiler.info.pathvar}"/>
14.415 + <java classname="@{classname}" dir="${profiler.info.dir}" fork="true" jvm="${profiler.info.jvm}">
14.416 + <jvmarg value="${profiler.info.jvmargs.agent}"/>
14.417 + <jvmarg line="${profiler.info.jvmargs}"/>
14.418 + <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
14.419 + <arg line="${application.args}"/>
14.420 + <classpath>
14.421 + <path path="${run.classpath}"/>
14.422 + </classpath>
14.423 + <syspropertyset>
14.424 + <propertyref prefix="run-sys-prop."/>
14.425 + <mapper from="run-sys-prop.*" to="*" type="glob"/>
14.426 + </syspropertyset>
14.427 + <customize/>
14.428 + </java>
14.429 + </sequential>
14.430 + </macrodef>
14.431 + </target>
14.432 + <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile" name="-profile-init-check">
14.433 + <fail unless="profiler.info.jvm">Must set JVM to use for profiling in profiler.info.jvm</fail>
14.434 + <fail unless="profiler.info.jvmargs.agent">Must set profiler agent JVM arguments in profiler.info.jvmargs.agent</fail>
14.435 + </target>
14.436 + <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
14.437 + <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1">
14.438 + <attribute default="${main.class}" name="name"/>
14.439 + <attribute default="${debug.classpath}" name="classpath"/>
14.440 + <attribute default="" name="stopclassname"/>
14.441 + <sequential>
14.442 + <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport}">
14.443 + <classpath>
14.444 + <path path="@{classpath}"/>
14.445 + </classpath>
14.446 + </nbjpdastart>
14.447 + </sequential>
14.448 + </macrodef>
14.449 + <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1">
14.450 + <attribute default="${build.classes.dir}" name="dir"/>
14.451 + <sequential>
14.452 + <nbjpdareload>
14.453 + <fileset dir="@{dir}" includes="${fix.classes}">
14.454 + <include name="${fix.includes}*.class"/>
14.455 + </fileset>
14.456 + </nbjpdareload>
14.457 + </sequential>
14.458 + </macrodef>
14.459 + </target>
14.460 + <target name="-init-debug-args">
14.461 + <property name="version-output" value="java version "${ant.java.version}"/>
14.462 + <condition property="have-jdk-older-than-1.4">
14.463 + <or>
14.464 + <contains string="${version-output}" substring="java version "1.0"/>
14.465 + <contains string="${version-output}" substring="java version "1.1"/>
14.466 + <contains string="${version-output}" substring="java version "1.2"/>
14.467 + <contains string="${version-output}" substring="java version "1.3"/>
14.468 + </or>
14.469 + </condition>
14.470 + <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
14.471 + <istrue value="${have-jdk-older-than-1.4}"/>
14.472 + </condition>
14.473 + <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
14.474 + <os family="windows"/>
14.475 + </condition>
14.476 + <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
14.477 + <isset property="debug.transport"/>
14.478 + </condition>
14.479 + </target>
14.480 + <target depends="-init-debug-args" name="-init-macrodef-debug">
14.481 + <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3">
14.482 + <attribute default="${main.class}" name="classname"/>
14.483 + <attribute default="${debug.classpath}" name="classpath"/>
14.484 + <element name="customize" optional="true"/>
14.485 + <sequential>
14.486 + <java classname="@{classname}" dir="${work.dir}" fork="true">
14.487 + <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
14.488 + <jvmarg line="${debug-args-line}"/>
14.489 + <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
14.490 + <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
14.491 + <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
14.492 + <jvmarg line="${run.jvmargs}"/>
14.493 + <classpath>
14.494 + <path path="@{classpath}"/>
14.495 + </classpath>
14.496 + <syspropertyset>
14.497 + <propertyref prefix="run-sys-prop."/>
14.498 + <mapper from="run-sys-prop.*" to="*" type="glob"/>
14.499 + </syspropertyset>
14.500 + <customize/>
14.501 + </java>
14.502 + </sequential>
14.503 + </macrodef>
14.504 + </target>
14.505 + <target name="-init-macrodef-java">
14.506 + <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">
14.507 + <attribute default="${main.class}" name="classname"/>
14.508 + <attribute default="${run.classpath}" name="classpath"/>
14.509 + <element name="customize" optional="true"/>
14.510 + <sequential>
14.511 + <java classname="@{classname}" dir="${work.dir}" fork="true">
14.512 + <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
14.513 + <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
14.514 + <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
14.515 + <jvmarg line="${run.jvmargs}"/>
14.516 + <classpath>
14.517 + <path path="@{classpath}"/>
14.518 + </classpath>
14.519 + <syspropertyset>
14.520 + <propertyref prefix="run-sys-prop."/>
14.521 + <mapper from="run-sys-prop.*" to="*" type="glob"/>
14.522 + </syspropertyset>
14.523 + <customize/>
14.524 + </java>
14.525 + </sequential>
14.526 + </macrodef>
14.527 + </target>
14.528 + <target name="-init-macrodef-copylibs">
14.529 + <macrodef name="copylibs" uri="http://www.netbeans.org/ns/j2se-project/3">
14.530 + <attribute default="${manifest.file}" name="manifest"/>
14.531 + <element name="customize" optional="true"/>
14.532 + <sequential>
14.533 + <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
14.534 + <pathconvert property="run.classpath.without.build.classes.dir">
14.535 + <path path="${run.classpath}"/>
14.536 + <map from="${build.classes.dir.resolved}" to=""/>
14.537 + </pathconvert>
14.538 + <pathconvert pathsep=" " property="jar.classpath">
14.539 + <path path="${run.classpath.without.build.classes.dir}"/>
14.540 + <chainedmapper>
14.541 + <flattenmapper/>
14.542 + <globmapper from="*" to="lib/*"/>
14.543 + </chainedmapper>
14.544 + </pathconvert>
14.545 + <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
14.546 + <copylibs compress="${jar.compress}" index="${jar.index}" indexMetaInf="${jar.index.metainf}" jarfile="${dist.jar}" manifest="@{manifest}" rebase="${copylibs.rebase}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
14.547 + <fileset dir="${build.classes.dir}"/>
14.548 + <manifest>
14.549 + <attribute name="Class-Path" value="${jar.classpath}"/>
14.550 + <customize/>
14.551 + </manifest>
14.552 + </copylibs>
14.553 + </sequential>
14.554 + </macrodef>
14.555 + </target>
14.556 + <target name="-init-presetdef-jar">
14.557 + <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
14.558 + <jar compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}">
14.559 + <j2seproject1:fileset dir="${build.classes.dir}"/>
14.560 + </jar>
14.561 + </presetdef>
14.562 + </target>
14.563 + <target name="-init-ap-cmdline-properties">
14.564 + <property name="annotation.processing.enabled" value="true"/>
14.565 + <property name="annotation.processing.processors.list" value=""/>
14.566 + <property name="annotation.processing.processor.options" value=""/>
14.567 + <property name="annotation.processing.run.all.processors" value="true"/>
14.568 + <property name="javac.processorpath" value="${javac.classpath}"/>
14.569 + <property name="javac.test.processorpath" value="${javac.test.classpath}"/>
14.570 + <condition property="ap.supported.internal" value="true">
14.571 + <not>
14.572 + <matches pattern="1\.[0-5](\..*)?" string="${javac.source}"/>
14.573 + </not>
14.574 + </condition>
14.575 + </target>
14.576 + <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-ap-cmdline-supported">
14.577 + <condition else="" property="ap.processors.internal" value="-processor ${annotation.processing.processors.list}">
14.578 + <isfalse value="${annotation.processing.run.all.processors}"/>
14.579 + </condition>
14.580 + <condition else="" property="ap.proc.none.internal" value="-proc:none">
14.581 + <isfalse value="${annotation.processing.enabled}"/>
14.582 + </condition>
14.583 + </target>
14.584 + <target depends="-init-ap-cmdline-properties,-init-ap-cmdline-supported" name="-init-ap-cmdline">
14.585 + <property name="ap.cmd.line.internal" value=""/>
14.586 + </target>
14.587 + <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,-init-ap-cmdline" name="init"/>
14.588 + <!--
14.589 + ===================
14.590 + COMPILATION SECTION
14.591 + ===================
14.592 + -->
14.593 + <target name="-deps-jar-init" unless="built-jar.properties">
14.594 + <property location="${build.dir}/built-jar.properties" name="built-jar.properties"/>
14.595 + <delete file="${built-jar.properties}" quiet="true"/>
14.596 + </target>
14.597 + <target if="already.built.jar.${basedir}" name="-warn-already-built-jar">
14.598 + <echo level="warn" message="Cycle detected: source.web.api was already built"/>
14.599 + </target>
14.600 + <target depends="init,-deps-jar-init" name="deps-jar" unless="no.deps">
14.601 + <mkdir dir="${build.dir}"/>
14.602 + <touch file="${built-jar.properties}" verbose="false"/>
14.603 + <property file="${built-jar.properties}" prefix="already.built.jar."/>
14.604 + <antcall target="-warn-already-built-jar"/>
14.605 + <propertyfile file="${built-jar.properties}">
14.606 + <entry key="${basedir}" value=""/>
14.607 + </propertyfile>
14.608 + <antcall target="-maybe-call-dep">
14.609 + <param name="call.built.properties" value="${built-jar.properties}"/>
14.610 + <param location="${project.base_web_api}" name="call.subproject"/>
14.611 + <param location="${project.base_web_api}/build.xml" name="call.script"/>
14.612 + <param name="call.target" value="jar"/>
14.613 + <param name="transfer.built-jar.properties" value="${built-jar.properties}"/>
14.614 + </antcall>
14.615 + </target>
14.616 + <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/>
14.617 + <target depends="init" name="-check-automatic-build">
14.618 + <available file="${build.classes.dir}/.netbeans_automatic_build" property="netbeans.automatic.build"/>
14.619 + </target>
14.620 + <target depends="init" if="netbeans.automatic.build" name="-clean-after-automatic-build">
14.621 + <antcall target="clean"/>
14.622 + </target>
14.623 + <target depends="init,deps-jar" name="-pre-pre-compile">
14.624 + <mkdir dir="${build.classes.dir}"/>
14.625 + </target>
14.626 + <target name="-pre-compile">
14.627 + <!-- Empty placeholder for easier customization. -->
14.628 + <!-- You can override this target in the ../build.xml file. -->
14.629 + </target>
14.630 + <target if="do.depend.true" name="-compile-depend">
14.631 + <pathconvert property="build.generated.subdirs">
14.632 + <dirset dir="${build.generated.sources.dir}" erroronmissingdir="false">
14.633 + <include name="*"/>
14.634 + </dirset>
14.635 + </pathconvert>
14.636 + <j2seproject3:depend srcdir="${src.dir}:${build.generated.subdirs}"/>
14.637 + </target>
14.638 + <target depends="init,deps-jar,-pre-pre-compile,-pre-compile, -copy-persistence-xml,-compile-depend" if="have.sources" name="-do-compile">
14.639 + <j2seproject3:javac gensrcdir="${build.generated.sources.dir}"/>
14.640 + <copy todir="${build.classes.dir}">
14.641 + <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
14.642 + </copy>
14.643 + </target>
14.644 + <target if="has.persistence.xml" name="-copy-persistence-xml">
14.645 + <mkdir dir="${build.classes.dir}/META-INF"/>
14.646 + <copy todir="${build.classes.dir}/META-INF">
14.647 + <fileset dir="${meta.inf.dir}" includes="persistence.xml"/>
14.648 + </copy>
14.649 + </target>
14.650 + <target name="-post-compile">
14.651 + <!-- Empty placeholder for easier customization. -->
14.652 + <!-- You can override this target in the ../build.xml file. -->
14.653 + </target>
14.654 + <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
14.655 + <target name="-pre-compile-single">
14.656 + <!-- Empty placeholder for easier customization. -->
14.657 + <!-- You can override this target in the ../build.xml file. -->
14.658 + </target>
14.659 + <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
14.660 + <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
14.661 + <j2seproject3:force-recompile/>
14.662 + <j2seproject3:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}" sourcepath="${src.dir}"/>
14.663 + </target>
14.664 + <target name="-post-compile-single">
14.665 + <!-- Empty placeholder for easier customization. -->
14.666 + <!-- You can override this target in the ../build.xml file. -->
14.667 + </target>
14.668 + <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
14.669 + <!--
14.670 + ====================
14.671 + JAR BUILDING SECTION
14.672 + ====================
14.673 + -->
14.674 + <target depends="init" name="-pre-pre-jar">
14.675 + <dirname file="${dist.jar}" property="dist.jar.dir"/>
14.676 + <mkdir dir="${dist.jar.dir}"/>
14.677 + </target>
14.678 + <target name="-pre-jar">
14.679 + <!-- Empty placeholder for easier customization. -->
14.680 + <!-- You can override this target in the ../build.xml file. -->
14.681 + </target>
14.682 + <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive" name="-do-jar-without-manifest" unless="manifest.available-mkdist.available">
14.683 + <j2seproject1:jar/>
14.684 + </target>
14.685 + <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive+manifest.available" name="-do-jar-with-manifest" unless="manifest.available+main.class-mkdist.available">
14.686 + <j2seproject1:jar manifest="${manifest.file}"/>
14.687 + </target>
14.688 + <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive+manifest.available+main.class" name="-do-jar-with-mainclass" unless="manifest.available+main.class+mkdist.available">
14.689 + <j2seproject1:jar manifest="${manifest.file}">
14.690 + <j2seproject1:manifest>
14.691 + <j2seproject1:attribute name="Main-Class" value="${main.class}"/>
14.692 + </j2seproject1:manifest>
14.693 + </j2seproject1:jar>
14.694 + <echo level="info">To run this application from the command line without Ant, try:</echo>
14.695 + <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
14.696 + <property location="${dist.jar}" name="dist.jar.resolved"/>
14.697 + <pathconvert property="run.classpath.with.dist.jar">
14.698 + <path path="${run.classpath}"/>
14.699 + <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
14.700 + </pathconvert>
14.701 + <echo level="info">java -cp "${run.classpath.with.dist.jar}" ${main.class}</echo>
14.702 + </target>
14.703 + <target depends="init" if="do.archive" name="-do-jar-with-libraries-create-manifest" unless="manifest.available">
14.704 + <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
14.705 + <touch file="${tmp.manifest.file}" verbose="false"/>
14.706 + </target>
14.707 + <target depends="init" if="do.archive+manifest.available" name="-do-jar-with-libraries-copy-manifest">
14.708 + <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
14.709 + <copy file="${manifest.file}" tofile="${tmp.manifest.file}"/>
14.710 + </target>
14.711 + <target depends="init,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest" if="do.archive+main.class.available" name="-do-jar-with-libraries-set-main">
14.712 + <manifest file="${tmp.manifest.file}" mode="update">
14.713 + <attribute name="Main-Class" value="${main.class}"/>
14.714 + </manifest>
14.715 + </target>
14.716 + <target depends="init,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest" if="do.archive+splashscreen.available" name="-do-jar-with-libraries-set-splashscreen">
14.717 + <basename file="${application.splash}" property="splashscreen.basename"/>
14.718 + <mkdir dir="${build.classes.dir}/META-INF"/>
14.719 + <copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/>
14.720 + <manifest file="${tmp.manifest.file}" mode="update">
14.721 + <attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/>
14.722 + </manifest>
14.723 + </target>
14.724 + <target depends="init,-init-macrodef-copylibs,compile,-pre-pre-jar,-pre-jar,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest,-do-jar-with-libraries-set-main,-do-jar-with-libraries-set-splashscreen" if="do.mkdist" name="-do-jar-with-libraries-pack">
14.725 + <j2seproject3:copylibs manifest="${tmp.manifest.file}"/>
14.726 + <echo level="info">To run this application from the command line without Ant, try:</echo>
14.727 + <property location="${dist.jar}" name="dist.jar.resolved"/>
14.728 + <echo level="info">java -jar "${dist.jar.resolved}"</echo>
14.729 + </target>
14.730 + <target depends="-do-jar-with-libraries-pack" if="do.archive" name="-do-jar-with-libraries-delete-manifest">
14.731 + <delete>
14.732 + <fileset file="${tmp.manifest.file}"/>
14.733 + </delete>
14.734 + </target>
14.735 + <target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest,-do-jar-with-libraries-set-main,-do-jar-with-libraries-set-splashscreen,-do-jar-with-libraries-pack,-do-jar-with-libraries-delete-manifest" name="-do-jar-with-libraries"/>
14.736 + <target name="-post-jar">
14.737 + <!-- Empty placeholder for easier customization. -->
14.738 + <!-- You can override this target in the ../build.xml file. -->
14.739 + </target>
14.740 + <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"/>
14.741 + <!--
14.742 + =================
14.743 + EXECUTION SECTION
14.744 + =================
14.745 + -->
14.746 + <target depends="init,compile" description="Run a main class." name="run">
14.747 + <j2seproject1:java>
14.748 + <customize>
14.749 + <arg line="${application.args}"/>
14.750 + </customize>
14.751 + </j2seproject1:java>
14.752 + </target>
14.753 + <target name="-do-not-recompile">
14.754 + <property name="javac.includes.binary" value=""/>
14.755 + </target>
14.756 + <target depends="init,compile-single" name="run-single">
14.757 + <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
14.758 + <j2seproject1:java classname="${run.class}"/>
14.759 + </target>
14.760 + <target depends="init,compile-test-single" name="run-test-with-main">
14.761 + <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
14.762 + <j2seproject1:java classname="${run.class}" classpath="${run.test.classpath}"/>
14.763 + </target>
14.764 + <!--
14.765 + =================
14.766 + DEBUGGING SECTION
14.767 + =================
14.768 + -->
14.769 + <target depends="init" if="netbeans.home" name="-debug-start-debugger">
14.770 + <j2seproject1:nbjpdastart name="${debug.class}"/>
14.771 + </target>
14.772 + <target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test">
14.773 + <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/>
14.774 + </target>
14.775 + <target depends="init,compile" name="-debug-start-debuggee">
14.776 + <j2seproject3:debug>
14.777 + <customize>
14.778 + <arg line="${application.args}"/>
14.779 + </customize>
14.780 + </j2seproject3:debug>
14.781 + </target>
14.782 + <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/>
14.783 + <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto">
14.784 + <j2seproject1:nbjpdastart stopclassname="${main.class}"/>
14.785 + </target>
14.786 + <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/>
14.787 + <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
14.788 + <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
14.789 + <j2seproject3:debug classname="${debug.class}"/>
14.790 + </target>
14.791 + <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/>
14.792 + <target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test">
14.793 + <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
14.794 + <j2seproject3:debug classname="${debug.class}" classpath="${debug.test.classpath}"/>
14.795 + </target>
14.796 + <target depends="init,compile-test-single,-debug-start-debugger-main-test,-debug-start-debuggee-main-test" if="netbeans.home" name="debug-test-with-main"/>
14.797 + <target depends="init" name="-pre-debug-fix">
14.798 + <fail unless="fix.includes">Must set fix.includes</fail>
14.799 + <property name="javac.includes" value="${fix.includes}.java"/>
14.800 + </target>
14.801 + <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
14.802 + <j2seproject1:nbjpdareload/>
14.803 + </target>
14.804 + <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
14.805 + <!--
14.806 + =================
14.807 + PROFILING SECTION
14.808 + =================
14.809 + -->
14.810 + <target depends="profile-init,compile" description="Profile a project in the IDE." if="netbeans.home" name="profile">
14.811 + <nbprofiledirect>
14.812 + <classpath>
14.813 + <path path="${run.classpath}"/>
14.814 + </classpath>
14.815 + </nbprofiledirect>
14.816 + <profile/>
14.817 + </target>
14.818 + <target depends="profile-init,compile-single" description="Profile a selected class in the IDE." if="netbeans.home" name="profile-single">
14.819 + <fail unless="profile.class">Must select one file in the IDE or set profile.class</fail>
14.820 + <nbprofiledirect>
14.821 + <classpath>
14.822 + <path path="${run.classpath}"/>
14.823 + </classpath>
14.824 + </nbprofiledirect>
14.825 + <profile classname="${profile.class}"/>
14.826 + </target>
14.827 + <!--
14.828 + =========================
14.829 + APPLET PROFILING SECTION
14.830 + =========================
14.831 + -->
14.832 + <target depends="profile-init,compile-single" if="netbeans.home" name="profile-applet">
14.833 + <nbprofiledirect>
14.834 + <classpath>
14.835 + <path path="${run.classpath}"/>
14.836 + </classpath>
14.837 + </nbprofiledirect>
14.838 + <profile classname="sun.applet.AppletViewer">
14.839 + <customize>
14.840 + <arg value="${applet.url}"/>
14.841 + </customize>
14.842 + </profile>
14.843 + </target>
14.844 + <!--
14.845 + =========================
14.846 + TESTS PROFILING SECTION
14.847 + =========================
14.848 + -->
14.849 + <target depends="profile-init,compile-test-single" if="netbeans.home" name="profile-test-single">
14.850 + <nbprofiledirect>
14.851 + <classpath>
14.852 + <path path="${run.test.classpath}"/>
14.853 + </classpath>
14.854 + </nbprofiledirect>
14.855 + <junit dir="${profiler.info.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" jvm="${profiler.info.jvm}" showoutput="true">
14.856 + <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
14.857 + <jvmarg value="${profiler.info.jvmargs.agent}"/>
14.858 + <jvmarg line="${profiler.info.jvmargs}"/>
14.859 + <test name="${profile.class}"/>
14.860 + <classpath>
14.861 + <path path="${run.test.classpath}"/>
14.862 + </classpath>
14.863 + <syspropertyset>
14.864 + <propertyref prefix="test-sys-prop."/>
14.865 + <mapper from="test-sys-prop.*" to="*" type="glob"/>
14.866 + </syspropertyset>
14.867 + <formatter type="brief" usefile="false"/>
14.868 + <formatter type="xml"/>
14.869 + </junit>
14.870 + </target>
14.871 + <!--
14.872 + ===============
14.873 + JAVADOC SECTION
14.874 + ===============
14.875 + -->
14.876 + <target depends="init" if="have.sources" name="-javadoc-build">
14.877 + <mkdir dir="${dist.javadoc.dir}"/>
14.878 + <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}">
14.879 + <classpath>
14.880 + <path path="${javac.classpath}"/>
14.881 + </classpath>
14.882 + <fileset dir="${src.dir}" excludes="*.java,${excludes}" includes="${includes}">
14.883 + <filename name="**/*.java"/>
14.884 + </fileset>
14.885 + <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
14.886 + <include name="**/*.java"/>
14.887 + <exclude name="*.java"/>
14.888 + </fileset>
14.889 + </javadoc>
14.890 + <copy todir="${dist.javadoc.dir}">
14.891 + <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
14.892 + <filename name="**/doc-files/**"/>
14.893 + </fileset>
14.894 + <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
14.895 + <include name="**/doc-files/**"/>
14.896 + </fileset>
14.897 + </copy>
14.898 + </target>
14.899 + <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview">
14.900 + <nbbrowse file="${dist.javadoc.dir}/index.html"/>
14.901 + </target>
14.902 + <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/>
14.903 + <!--
14.904 + =========================
14.905 + JUNIT COMPILATION SECTION
14.906 + =========================
14.907 + -->
14.908 + <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
14.909 + <mkdir dir="${build.test.classes.dir}"/>
14.910 + </target>
14.911 + <target name="-pre-compile-test">
14.912 + <!-- Empty placeholder for easier customization. -->
14.913 + <!-- You can override this target in the ../build.xml file. -->
14.914 + </target>
14.915 + <target if="do.depend.true" name="-compile-test-depend">
14.916 + <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
14.917 + </target>
14.918 + <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test">
14.919 + <j2seproject3:javac apgeneratedsrcdir="${build.test.classes.dir}" classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" processorpath="${javac.test.processorpath}" srcdir="${test.src.dir}"/>
14.920 + <copy todir="${build.test.classes.dir}">
14.921 + <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
14.922 + </copy>
14.923 + </target>
14.924 + <target name="-post-compile-test">
14.925 + <!-- Empty placeholder for easier customization. -->
14.926 + <!-- You can override this target in the ../build.xml file. -->
14.927 + </target>
14.928 + <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
14.929 + <target name="-pre-compile-test-single">
14.930 + <!-- Empty placeholder for easier customization. -->
14.931 + <!-- You can override this target in the ../build.xml file. -->
14.932 + </target>
14.933 + <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
14.934 + <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
14.935 + <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/>
14.936 + <j2seproject3:javac apgeneratedsrcdir="${build.test.classes.dir}" classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}" processorpath="${javac.test.processorpath}" sourcepath="${test.src.dir}" srcdir="${test.src.dir}"/>
14.937 + <copy todir="${build.test.classes.dir}">
14.938 + <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
14.939 + </copy>
14.940 + </target>
14.941 + <target name="-post-compile-test-single">
14.942 + <!-- Empty placeholder for easier customization. -->
14.943 + <!-- You can override this target in the ../build.xml file. -->
14.944 + </target>
14.945 + <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
14.946 + <!--
14.947 + =======================
14.948 + JUNIT EXECUTION SECTION
14.949 + =======================
14.950 + -->
14.951 + <target depends="init" if="have.tests" name="-pre-test-run">
14.952 + <mkdir dir="${build.test.results.dir}"/>
14.953 + </target>
14.954 + <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
14.955 + <j2seproject3:junit testincludes="**/*Test.java"/>
14.956 + </target>
14.957 + <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
14.958 + <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
14.959 + </target>
14.960 + <target depends="init" if="have.tests" name="test-report"/>
14.961 + <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
14.962 + <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
14.963 + <target depends="init" if="have.tests" name="-pre-test-run-single">
14.964 + <mkdir dir="${build.test.results.dir}"/>
14.965 + </target>
14.966 + <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
14.967 + <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
14.968 + <j2seproject3:junit excludes="" includes="${test.includes}"/>
14.969 + </target>
14.970 + <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
14.971 + <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
14.972 + </target>
14.973 + <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single,-post-test-run-single" description="Run single unit test." name="test-single"/>
14.974 + <!--
14.975 + =======================
14.976 + JUNIT DEBUGGING SECTION
14.977 + =======================
14.978 + -->
14.979 + <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">
14.980 + <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
14.981 + <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>
14.982 + <delete file="${test.report.file}"/>
14.983 + <mkdir dir="${build.test.results.dir}"/>
14.984 + <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}">
14.985 + <customize>
14.986 + <syspropertyset>
14.987 + <propertyref prefix="test-sys-prop."/>
14.988 + <mapper from="test-sys-prop.*" to="*" type="glob"/>
14.989 + </syspropertyset>
14.990 + <arg value="${test.class}"/>
14.991 + <arg value="showoutput=true"/>
14.992 + <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>
14.993 + <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>
14.994 + </customize>
14.995 + </j2seproject3:debug>
14.996 + </target>
14.997 + <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
14.998 + <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
14.999 + </target>
14.1000 + <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
14.1001 + <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
14.1002 + <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/>
14.1003 + </target>
14.1004 + <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
14.1005 + <!--
14.1006 + =========================
14.1007 + APPLET EXECUTION SECTION
14.1008 + =========================
14.1009 + -->
14.1010 + <target depends="init,compile-single" name="run-applet">
14.1011 + <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
14.1012 + <j2seproject1:java classname="sun.applet.AppletViewer">
14.1013 + <customize>
14.1014 + <arg value="${applet.url}"/>
14.1015 + </customize>
14.1016 + </j2seproject1:java>
14.1017 + </target>
14.1018 + <!--
14.1019 + =========================
14.1020 + APPLET DEBUGGING SECTION
14.1021 + =========================
14.1022 + -->
14.1023 + <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet">
14.1024 + <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
14.1025 + <j2seproject3:debug classname="sun.applet.AppletViewer">
14.1026 + <customize>
14.1027 + <arg value="${applet.url}"/>
14.1028 + </customize>
14.1029 + </j2seproject3:debug>
14.1030 + </target>
14.1031 + <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/>
14.1032 + <!--
14.1033 + ===============
14.1034 + CLEANUP SECTION
14.1035 + ===============
14.1036 + -->
14.1037 + <target name="-deps-clean-init" unless="built-clean.properties">
14.1038 + <property location="${build.dir}/built-clean.properties" name="built-clean.properties"/>
14.1039 + <delete file="${built-clean.properties}" quiet="true"/>
14.1040 + </target>
14.1041 + <target if="already.built.clean.${basedir}" name="-warn-already-built-clean">
14.1042 + <echo level="warn" message="Cycle detected: source.web.api was already built"/>
14.1043 + </target>
14.1044 + <target depends="init,-deps-clean-init" name="deps-clean" unless="no.deps">
14.1045 + <mkdir dir="${build.dir}"/>
14.1046 + <touch file="${built-clean.properties}" verbose="false"/>
14.1047 + <property file="${built-clean.properties}" prefix="already.built.clean."/>
14.1048 + <antcall target="-warn-already-built-clean"/>
14.1049 + <propertyfile file="${built-clean.properties}">
14.1050 + <entry key="${basedir}" value=""/>
14.1051 + </propertyfile>
14.1052 + <antcall target="-maybe-call-dep">
14.1053 + <param name="call.built.properties" value="${built-clean.properties}"/>
14.1054 + <param location="${project.base_web_api}" name="call.subproject"/>
14.1055 + <param location="${project.base_web_api}/build.xml" name="call.script"/>
14.1056 + <param name="call.target" value="clean"/>
14.1057 + <param name="transfer.built-clean.properties" value="${built-clean.properties}"/>
14.1058 + </antcall>
14.1059 + </target>
14.1060 + <target depends="init" name="-do-clean">
14.1061 + <delete dir="${build.dir}"/>
14.1062 + <delete dir="${dist.dir}" followsymlinks="false" includeemptydirs="true"/>
14.1063 + </target>
14.1064 + <target name="-post-clean">
14.1065 + <!-- Empty placeholder for easier customization. -->
14.1066 + <!-- You can override this target in the ../build.xml file. -->
14.1067 + </target>
14.1068 + <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
14.1069 + <target name="-check-call-dep">
14.1070 + <property file="${call.built.properties}" prefix="already.built."/>
14.1071 + <condition property="should.call.dep">
14.1072 + <not>
14.1073 + <isset property="already.built.${call.subproject}"/>
14.1074 + </not>
14.1075 + </condition>
14.1076 + </target>
14.1077 + <target depends="-check-call-dep" if="should.call.dep" name="-maybe-call-dep">
14.1078 + <ant antfile="${call.script}" inheritall="false" target="${call.target}">
14.1079 + <propertyset>
14.1080 + <propertyref prefix="transfer."/>
14.1081 + <mapper from="transfer.*" to="*" type="glob"/>
14.1082 + </propertyset>
14.1083 + </ant>
14.1084 + </target>
14.1085 +</project>
15.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
15.2 +++ b/remoting/server/web/source.web.api/nbproject/genfiles.properties Mon Jun 27 18:32:06 2011 +0200
15.3 @@ -0,0 +1,8 @@
15.4 +build.xml.data.CRC32=6ff1c131
15.5 +build.xml.script.CRC32=d7df2170
15.6 +build.xml.stylesheet.CRC32=28e38971@1.45.0.45
15.7 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
15.8 +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
15.9 +nbproject/build-impl.xml.data.CRC32=6ff1c131
15.10 +nbproject/build-impl.xml.script.CRC32=6fadb345
15.11 +nbproject/build-impl.xml.stylesheet.CRC32=cfcde7f8@1.45.0.45
16.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
16.2 +++ b/remoting/server/web/source.web.api/nbproject/project.properties Mon Jun 27 18:32:06 2011 +0200
16.3 @@ -0,0 +1,81 @@
16.4 +annotation.processing.enabled=true
16.5 +annotation.processing.enabled.in.editor=false
16.6 +annotation.processing.processor.options=
16.7 +annotation.processing.processors.list=
16.8 +annotation.processing.run.all.processors=true
16.9 +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output
16.10 +build.classes.dir=${build.dir}/classes
16.11 +build.classes.excludes=**/*.java,**/*.form
16.12 +# This directory is removed when the project is cleaned:
16.13 +build.dir=build
16.14 +build.generated.dir=${build.dir}/generated
16.15 +build.generated.sources.dir=${build.dir}/generated-sources
16.16 +# Only compile against the classpath explicitly listed here:
16.17 +build.sysclasspath=ignore
16.18 +build.test.classes.dir=${build.dir}/test/classes
16.19 +build.test.results.dir=${build.dir}/test/results
16.20 +# Uncomment to specify the preferred debugger connection transport:
16.21 +#debug.transport=dt_socket
16.22 +debug.classpath=\
16.23 + ${run.classpath}
16.24 +debug.test.classpath=\
16.25 + ${run.test.classpath}
16.26 +# This directory is removed when the project is cleaned:
16.27 +dist.dir=dist
16.28 +dist.jar=${dist.dir}/source.web.api.jar
16.29 +dist.javadoc.dir=${dist.dir}/javadoc
16.30 +excludes=
16.31 +file.reference.org-netbeans-modules-parsing-api.jar=../../../../server/lib/org-netbeans-modules-parsing-api.jar
16.32 +file.reference.org-netbeans-modules-parsing-lucene.jar=../../../../server/lib/org-netbeans-modules-parsing-lucene.jar
16.33 +file.reference.org-openide-filesystems.jar=../../../../server/lib/org-openide-filesystems.jar
16.34 +includes=**
16.35 +jar.compress=false
16.36 +javac.classpath=\
16.37 + ${file.reference.org-netbeans-modules-parsing-lucene.jar}:\
16.38 + ${reference.base_web_api.jar}:\
16.39 + ${libs.jersey.classpath}:\
16.40 + ${file.reference.org-netbeans-modules-parsing-api.jar}:\
16.41 + ${file.reference.org-openide-filesystems.jar}
16.42 +# Space-separated list of extra javac options
16.43 +javac.compilerargs=
16.44 +javac.deprecation=false
16.45 +javac.processorpath=\
16.46 + ${javac.classpath}
16.47 +javac.source=1.6
16.48 +javac.target=1.6
16.49 +javac.test.classpath=\
16.50 + ${javac.classpath}:\
16.51 + ${build.classes.dir}
16.52 +javac.test.processorpath=\
16.53 + ${javac.test.classpath}
16.54 +javadoc.additionalparam=
16.55 +javadoc.author=false
16.56 +javadoc.encoding=${source.encoding}
16.57 +javadoc.noindex=false
16.58 +javadoc.nonavbar=false
16.59 +javadoc.notree=false
16.60 +javadoc.private=false
16.61 +javadoc.splitindex=true
16.62 +javadoc.use=true
16.63 +javadoc.version=false
16.64 +javadoc.windowtitle=
16.65 +main.class=
16.66 +manifest.file=manifest.mf
16.67 +meta.inf.dir=${src.dir}/META-INF
16.68 +mkdist.disabled=false
16.69 +platform.active=default_platform
16.70 +project.base_web_api=../base.web.api
16.71 +reference.base_web_api.jar=${project.base_web_api}/dist/base.web.api.jar
16.72 +run.classpath=\
16.73 + ${javac.classpath}:\
16.74 + ${build.classes.dir}
16.75 +# Space-separated list of JVM arguments used when running the project
16.76 +# (you may also define separate properties like run-sys-prop.name=value instead of -Dname=value
16.77 +# or test-sys-prop.name=value to set system properties for unit tests):
16.78 +run.jvmargs=
16.79 +run.test.classpath=\
16.80 + ${javac.test.classpath}:\
16.81 + ${build.test.classes.dir}
16.82 +source.encoding=UTF-8
16.83 +src.dir=src
16.84 +test.src.dir=test
17.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
17.2 +++ b/remoting/server/web/source.web.api/nbproject/project.xml Mon Jun 27 18:32:06 2011 +0200
17.3 @@ -0,0 +1,28 @@
17.4 +<?xml version="1.0" encoding="UTF-8"?>
17.5 +<project xmlns="http://www.netbeans.org/ns/project/1">
17.6 + <type>org.netbeans.modules.java.j2seproject</type>
17.7 + <configuration>
17.8 + <data xmlns="http://www.netbeans.org/ns/j2se-project/3">
17.9 + <name>source.web.api</name>
17.10 + <source-roots>
17.11 + <root id="src.dir"/>
17.12 + </source-roots>
17.13 + <test-roots>
17.14 + <root id="test.src.dir"/>
17.15 + </test-roots>
17.16 + </data>
17.17 + <libraries xmlns="http://www.netbeans.org/ns/ant-project-libraries/1">
17.18 + <definitions>../../../../server/lib/nblibraries.properties</definitions>
17.19 + </libraries>
17.20 + <references xmlns="http://www.netbeans.org/ns/ant-project-references/1">
17.21 + <reference>
17.22 + <foreign-project>base_web_api</foreign-project>
17.23 + <artifact-type>jar</artifact-type>
17.24 + <script>build.xml</script>
17.25 + <target>jar</target>
17.26 + <clean-target>clean</clean-target>
17.27 + <id>jar</id>
17.28 + </reference>
17.29 + </references>
17.30 + </configuration>
17.31 +</project>
18.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
18.2 +++ b/remoting/server/web/source.web.api/src/org/netbeans/modules/jackpot30/source/api/API.java Mon Jun 27 18:32:06 2011 +0200
18.3 @@ -0,0 +1,105 @@
18.4 +/*
18.5 + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
18.6 + *
18.7 + * Copyright 2011 Oracle and/or its affiliates. All rights reserved.
18.8 + *
18.9 + * Oracle and Java are registered trademarks of Oracle and/or its affiliates.
18.10 + * Other names may be trademarks of their respective owners.
18.11 + *
18.12 + * The contents of this file are subject to the terms of either the GNU
18.13 + * General Public License Version 2 only ("GPL") or the Common
18.14 + * Development and Distribution License("CDDL") (collectively, the
18.15 + * "License"). You may not use this file except in compliance with the
18.16 + * License. You can obtain a copy of the License at
18.17 + * http://www.netbeans.org/cddl-gplv2.html
18.18 + * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
18.19 + * specific language governing permissions and limitations under the
18.20 + * License. When distributing the software, include this License Header
18.21 + * Notice in each file and include the License file at
18.22 + * nbbuild/licenses/CDDL-GPL-2-CP. Oracle designates this
18.23 + * particular file as subject to the "Classpath" exception as provided
18.24 + * by Oracle in the GPL Version 2 section of the License file that
18.25 + * accompanied this code. If applicable, add the following below the
18.26 + * License Header, with the fields enclosed by brackets [] replaced by
18.27 + * your own identifying information:
18.28 + * "Portions Copyrighted [year] [name of copyright owner]"
18.29 + *
18.30 + * If you wish your version of this file to be governed by only the CDDL
18.31 + * or only the GPL Version 2, indicate your decision by adding
18.32 + * "[Contributor] elects to include this software in this distribution
18.33 + * under the [CDDL or GPL Version 2] license." If you do not indicate a
18.34 + * single choice of license, a recipient has the option to distribute
18.35 + * your version of this file under either the CDDL, the GPL Version 2 or
18.36 + * to extend the choice of license to its licensees as provided above.
18.37 + * However, if you add GPL Version 2 code and therefore, elected the GPL
18.38 + * Version 2 license, then the option applies only if the new code is
18.39 + * made subject to such option by the copyright holder.
18.40 + *
18.41 + * Contributor(s):
18.42 + *
18.43 + * Portions Copyrighted 2011 Sun Microsystems, Inc.
18.44 + */
18.45 +package org.netbeans.modules.jackpot30.source.api;
18.46 +
18.47 +import java.io.IOException;
18.48 +import java.net.URL;
18.49 +import java.util.logging.Level;
18.50 +import java.util.logging.Logger;
18.51 +import javax.ws.rs.GET;
18.52 +import javax.ws.rs.Path;
18.53 +import javax.ws.rs.Produces;
18.54 +import javax.ws.rs.QueryParam;
18.55 +import org.netbeans.modules.jackpot30.backend.base.CategoryStorage;
18.56 +import org.netbeans.modules.parsing.impl.indexing.CacheFolder;
18.57 +import org.netbeans.modules.parsing.lucene.support.DocumentIndex;
18.58 +import org.netbeans.modules.parsing.lucene.support.IndexDocument;
18.59 +import org.netbeans.modules.parsing.lucene.support.IndexManager;
18.60 +import org.netbeans.modules.parsing.lucene.support.Queries.QueryKind;
18.61 +import org.openide.filesystems.FileObject;
18.62 +import org.openide.filesystems.FileUtil;
18.63 +
18.64 +/**
18.65 + *
18.66 + * @author lahvac
18.67 + */
18.68 +@Path("/index/source")
18.69 +public class API {
18.70 +
18.71 + private static final String KEY_CONTENT = "content";
18.72 +
18.73 + @GET
18.74 + @Path("/cat")
18.75 + @Produces("text/plain")
18.76 + public String cat(@QueryParam("path") String segment, @QueryParam("relative") String relative) throws IOException {
18.77 + CategoryStorage srcRoots = CategoryStorage.forId(segment);
18.78 +
18.79 + for (URL srcRoot : srcRoots.getCategoryIndexFolders()) {
18.80 + DocumentIndex idx = null;
18.81 +
18.82 + try {
18.83 + if (!"rel".equals(srcRoot.getProtocol())) continue;
18.84 +
18.85 + if (!relative.startsWith(srcRoot.toString().substring("rel:/".length()))) continue;
18.86 +
18.87 + String stripped = relative.substring(srcRoot.toString().substring("rel:/".length()).length());
18.88 + FileObject dataFolder = CacheFolder.getDataFolder(srcRoot);
18.89 +
18.90 + idx = IndexManager.createDocumentIndex(FileUtil.toFile(dataFolder.getFileObject("fullsource/1")));//XXX: don't hardcode the constants!
18.91 +
18.92 + idx.getStatus(); //XXX: to initialize the index
18.93 +
18.94 + for (IndexDocument d : idx.findByPrimaryKey(stripped, QueryKind.EXACT, KEY_CONTENT)) {
18.95 + return d.getValue(KEY_CONTENT);
18.96 + }
18.97 + } catch (InterruptedException ex) {
18.98 + Logger.getLogger(API.class.getName()).log(Level.SEVERE, null, ex);
18.99 + } finally {
18.100 + if (idx != null) {
18.101 + idx.close();
18.102 + }
18.103 + }
18.104 + }
18.105 +
18.106 + return null;
18.107 + }
18.108 +}
19.1 --- a/remoting/server/web/type.web.api/src/org/netbeans/modules/jackpot30/backend/type/ui/ui-findType.html Mon Jun 27 10:09:34 2011 +0200
19.2 +++ b/remoting/server/web/type.web.api/src/org/netbeans/modules/jackpot30/backend/type/ui/ui-findType.html Mon Jun 27 18:32:06 2011 +0200
19.3 @@ -20,7 +20,7 @@
19.4 <#if results??>
19.5 Found types:<br>
19.6 <#list results as result>
19.7 - <a href="/index/ui/show?path=${selectedPath}&relative=${result.relativePath}">${result.fqn}</a><br>
19.8 + <a href="/index/source/cat?path=${selectedPath}&relative=${result.relativePath}">${result.fqn}</a><br>
19.9 </#list>
19.10 </#if>
19.11
20.1 --- a/remoting/server/web/web.main/nbproject/build-impl.xml Mon Jun 27 10:09:34 2011 +0200
20.2 +++ b/remoting/server/web/web.main/nbproject/build-impl.xml Mon Jun 27 18:32:06 2011 +0200
20.3 @@ -611,6 +611,13 @@
20.4 </antcall>
20.5 <antcall target="-maybe-call-dep">
20.6 <param name="call.built.properties" value="${built-jar.properties}"/>
20.7 + <param location="${project.source_web_api}" name="call.subproject"/>
20.8 + <param location="${project.source_web_api}/build.xml" name="call.script"/>
20.9 + <param name="call.target" value="jar"/>
20.10 + <param name="transfer.built-jar.properties" value="${built-jar.properties}"/>
20.11 + </antcall>
20.12 + <antcall target="-maybe-call-dep">
20.13 + <param name="call.built.properties" value="${built-jar.properties}"/>
20.14 <param location="${project.type_web_api}" name="call.subproject"/>
20.15 <param location="${project.type_web_api}/build.xml" name="call.script"/>
20.16 <param name="call.target" value="jar"/>
20.17 @@ -1062,6 +1069,13 @@
20.18 </antcall>
20.19 <antcall target="-maybe-call-dep">
20.20 <param name="call.built.properties" value="${built-clean.properties}"/>
20.21 + <param location="${project.source_web_api}" name="call.subproject"/>
20.22 + <param location="${project.source_web_api}/build.xml" name="call.script"/>
20.23 + <param name="call.target" value="clean"/>
20.24 + <param name="transfer.built-clean.properties" value="${built-clean.properties}"/>
20.25 + </antcall>
20.26 + <antcall target="-maybe-call-dep">
20.27 + <param name="call.built.properties" value="${built-clean.properties}"/>
20.28 <param location="${project.type_web_api}" name="call.subproject"/>
20.29 <param location="${project.type_web_api}/build.xml" name="call.script"/>
20.30 <param name="call.target" value="clean"/>
21.1 --- a/remoting/server/web/web.main/nbproject/genfiles.properties Mon Jun 27 10:09:34 2011 +0200
21.2 +++ b/remoting/server/web/web.main/nbproject/genfiles.properties Mon Jun 27 18:32:06 2011 +0200
21.3 @@ -1,8 +1,8 @@
21.4 -build.xml.data.CRC32=2f237923
21.5 +build.xml.data.CRC32=9cd5904e
21.6 build.xml.script.CRC32=5ddf268c
21.7 build.xml.stylesheet.CRC32=28e38971@1.45.0.45
21.8 # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
21.9 # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
21.10 -nbproject/build-impl.xml.data.CRC32=2f237923
21.11 -nbproject/build-impl.xml.script.CRC32=96187301
21.12 +nbproject/build-impl.xml.data.CRC32=9cd5904e
21.13 +nbproject/build-impl.xml.script.CRC32=b4b72cb0
21.14 nbproject/build-impl.xml.stylesheet.CRC32=cfcde7f8@1.45.0.45
22.1 --- a/remoting/server/web/web.main/nbproject/project.properties Mon Jun 27 10:09:34 2011 +0200
22.2 +++ b/remoting/server/web/web.main/nbproject/project.properties Mon Jun 27 18:32:06 2011 +0200
22.3 @@ -66,7 +66,8 @@
22.4 ${file.reference.org-openide-util-lookup.jar}:\
22.5 ${file.reference.org-openide-util.jar}:\
22.6 ${file.reference.util-commons.jar}:\
22.7 - ${file.reference.util-pojson.jar}
22.8 + ${file.reference.util-pojson.jar}:\
22.9 + ${reference.source_web_api.jar}
22.10 # Space-separated list of extra javac options
22.11 javac.compilerargs=
22.12 javac.deprecation=false
22.13 @@ -97,8 +98,10 @@
22.14 mkdist.disabled=false
22.15 platform.active=default_platform
22.16 project.base_web_api=../base.web.api
22.17 +project.source_web_api=../source.web.api
22.18 project.type_web_api=../type.web.api
22.19 reference.base_web_api.jar=${project.base_web_api}/dist/base.web.api.jar
22.20 +reference.source_web_api.jar=${project.source_web_api}/dist/source.web.api.jar
22.21 reference.type_web_api.jar=${project.type_web_api}/dist/type.web.api.jar
22.22 run.classpath=\
22.23 ${javac.classpath}:\
23.1 --- a/remoting/server/web/web.main/nbproject/project.xml Mon Jun 27 10:09:34 2011 +0200
23.2 +++ b/remoting/server/web/web.main/nbproject/project.xml Mon Jun 27 18:32:06 2011 +0200
23.3 @@ -24,6 +24,14 @@
23.4 <id>jar</id>
23.5 </reference>
23.6 <reference>
23.7 + <foreign-project>source_web_api</foreign-project>
23.8 + <artifact-type>jar</artifact-type>
23.9 + <script>build.xml</script>
23.10 + <target>jar</target>
23.11 + <clean-target>clean</clean-target>
23.12 + <id>jar</id>
23.13 + </reference>
23.14 + <reference>
23.15 <foreign-project>type_web_api</foreign-project>
23.16 <artifact-type>jar</artifact-type>
23.17 <script>build.xml</script>