Jan Lahoda avatar Jan Lahoda committed fba78f0

Run jackpot on jackpot - at least on some of the projects

Comments (0)

Files changed (23)

cmdline/build.xml

 <project name="cmdline" basedir=".">
     <description>Builds the module suite cmdline.</description>
     <import file="nbproject/build-impl.xml"/>
+    <import file="../suite-common.xml"/>
 </project>

duplicates/ide/build.xml

 <project name="duplicates-ide" basedir=".">
     <description>Builds the module suite ide.</description>
     <import file="nbproject/build-impl.xml"/>
+    <import file="../../suite-common.xml"/>
 </project>

findbugs-import.xml

             <available file="test/scripted/config" />
         </condition>
     </target>
+    
+    <target name="-jackpot-check-cp-exists" depends="init">
+        <condition property="jackpot.cp.defined">
+            <isreference refid="cp"/>
+        </condition>
+    </target>
+    
+    <target name="jackpot" depends="init,-jackpot-check-cp-exists" if="jackpot.cp.defined">
+	<fail unless="jackpot.home">${jackpot.home} must be specified</fail>
+        <taskdef name="jackpot" classname="org.netbeans.modules.jackpot30.cmdline.ant.JackpotTask" classpath="${jackpot.home}/jackpot-ant.jar"/>
+
+        <echo>Running Jackpot on module: ${code.name.base.dashes}</echo>
+        <jackpot jackpotHome="${jackpot.home}" source="${javac.source}">
+            <src>
+                <pathelement path="${src.dir}" />
+            </src>
+            <classpath>
+                <path refid="cp"/>
+            </classpath>
+        </jackpot>
+    </target>
 </project>
 ant -Dnbplatform.default.harness.dir=$PLATFORM/harness -Dnbplatform.default.netbeans.dest.dir=$PLATFORM -Dnbplatform.active.dir=$PLATFORM -Ddist.base=$DIST_BASE build-auc || exit 1
 gzip <build/updates/updates.xml >build/updates/updates.xml.gz
 
+JACKPOT_ANALYSIS_SUBPROJECTS="remoting/common remoting/ide remoting/server/indexer duplicates/ide cmdline language/ide"
+JACKPOT_TOOL=`pwd`/cmdline/tool/build/jackpot
+echo "$JACKPOT_TOOL"
+for subproject in $JACKPOT_ANALYSIS_SUBPROJECTS; do
+    (cd $subproject; ant -Dnbplatform.default.harness.dir=$PLATFORM/harness -Dnbplatform.default.netbeans.dest.dir=$PLATFORM -Dnbplatform.active.dir=$PLATFORM -Djackpot.home="$JACKPOT_TOOL" jackpot) || exit 1
+done
+
 exit 0

language/ide/build.xml

 <project name="language-ide" basedir=".">
     <description>Builds the module suite language.</description>
     <import file="nbproject/build-impl.xml"/>
+    <import file="../../suite-common.xml"/>
 </project>

language/ide/ui/build.xml

 <project name="org.netbeans.modules.jackpot30.ui" default="netbeans" basedir=".">
     <description>Builds, tests, and runs the project org.netbeans.modules.jackpot30.ui.</description>
     <import file="nbproject/build-impl.xml"/>
+    <import file="${suite.dir}/../../findbugs-import.xml"/>
 </project>

remoting/common/api/build.xml

 <project name="org.netbeans.modules.jackpot30.common" default="netbeans" basedir=".">
     <description>Builds, tests, and runs the project org.netbeans.modules.jackpot30.common.</description>
     <import file="nbproject/build-impl.xml"/>
+    <import file="${suite.dir}/../../findbugs-import.xml"/>
 </project>

remoting/common/borrowedtests/build.xml

 <project name="org.netbeans.modules.jackpot30.test.borrowed" default="netbeans" basedir=".">
     <description>Builds, tests, and runs the project org.netbeans.modules.jackpot30.test.borrowed.</description>
     <import file="nbproject/build-impl.xml"/>
+    <import file="${suite.dir}/../../findbugs-import.xml"/>
 <!--    <import file="../findbugs-import.xml"/>-->
 
 <!--    <target name="test" />

remoting/common/build.xml

 <project name="base" basedir=".">
     <description>Builds the module suite base.</description>
     <import file="nbproject/build-impl.xml"/>
+    <import file="../../suite-common.xml"/>
 </project>

remoting/common/test/build.xml

 <project name="org.netbeans.modules.jackpot30.common.test" default="netbeans" basedir=".">
     <description>Builds, tests, and runs the project org.netbeans.modules.jackpot30.common.test.</description>
     <import file="nbproject/build-impl.xml"/>
+    <import file="${suite.dir}/../../findbugs-import.xml"/>
 </project>

remoting/ide/api/build.xml

 <project name="org.netbeans.modules.jackpot30.remoting.api" default="netbeans" basedir=".">
     <description>Builds, tests, and runs the project org.netbeans.modules.jackpot30.remoting.api.</description>
     <import file="nbproject/build-impl.xml"/>
+    <import file="${suite.dir}/../../findbugs-import.xml"/>
     
     <target name="-check-jerig-downloaded">
         <available file="external/jerig-36929ddc99ff.zip" property="jerig.downloaded"/>

remoting/ide/build.xml

 <project name="remoting-ide" basedir=".">
     <description>Builds the module suite ide.</description>
     <import file="nbproject/build-impl.xml"/>
+    <import file="../../suite-common.xml"/>
 </project>

remoting/ide/cnd.remote.bridge/build.xml

 <project name="org.netbeans.modules.jackpot30.cnd.remote.bridge" default="netbeans" basedir=".">
     <description>Builds, tests, and runs the project org.netbeans.modules.jackpot30.cnd.remote.bridge.</description>
     <import file="nbproject/build-impl.xml"/>
+    <import file="${suite.dir}/../../findbugs-import.xml"/>
 </project>

remoting/ide/downloadable/build.xml

 <project name="org.netbeans.modules.jackpot30.remoting.downloadable" default="netbeans" basedir=".">
     <description>Builds, tests, and runs the project org.netbeans.modules.jackpot30.remoting.downloadable.</description>
     <import file="nbproject/build-impl.xml"/>
+    <import file="${suite.dir}/../../findbugs-import.xml"/>
 </project>

remoting/ide/jumpto/build.xml

 <project name="org.netbeans.modules.jackpot30.jumpto" default="netbeans" basedir=".">
     <description>Builds, tests, and runs the project org.netbeans.modules.jackpot30.jumpto.</description>
     <import file="nbproject/build-impl.xml"/>
+    <import file="${suite.dir}/../../findbugs-import.xml"/>
 <!--    <import file="${suite.dir}/findbugs-import.xml"/>-->
 </project>

remoting/ide/kit/build.xml

 <project name="org.netbeans.modules.jackpot30.remoting.kit" default="netbeans" basedir=".">
     <description>Builds, tests, and runs the project org.netbeans.modules.jackpot30.remoting.kit.</description>
     <import file="nbproject/build-impl.xml"/>
+    <import file="${suite.dir}/../../findbugs-import.xml"/>
 </project>

remoting/ide/local/build.xml

 <project name="org.netbeans.modules.jackpot30.remoting.local" default="netbeans" basedir=".">
     <description>Builds, tests, and runs the project org.netbeans.modules.jackpot30.remoting.local.</description>
     <import file="nbproject/build-impl.xml"/>
+    <import file="${suite.dir}/../../findbugs-import.xml"/>
 </project>

remoting/ide/usages/build.xml

 <project name="org.netbeans.modules.jackpot30.ide.usages" default="netbeans" basedir=".">
     <description>Builds, tests, and runs the project org.netbeans.modules.jackpot30.ide.usages.</description>
     <import file="nbproject/build-impl.xml"/>
+    <import file="${suite.dir}/../../findbugs-import.xml"/>
 </project>

remoting/server/indexer/build.xml

 <project name="indexing" basedir=".">
     <description>Builds the module suite indexing.</description>
     <import file="nbproject/build-impl.xml"/>
+    <import file="../../../suite-common.xml"/>
 </project>

remoting/server/indexer/impl/build.xml

 <project name="org.netbeans.modules.jackpot30.backend.impl" default="netbeans" basedir=".">
     <description>Builds, tests, and runs the project org.netbeans.modules.jackpot30.backend.impl.</description>
     <import file="nbproject/build-impl.xml"/>
+    <import file="${suite.dir}/../../../findbugs-import.xml"/>
 </project>

remoting/server/indexer/source/build.xml

 <project name="org.netbeans.modules.jackpot30.indexer.source" default="netbeans" basedir=".">
     <description>Builds, tests, and runs the project org.netbeans.modules.jackpot30.indexer.source.</description>
     <import file="nbproject/build-impl.xml"/>
+    <import file="${suite.dir}/../../../findbugs-import.xml"/>
 </project>

remoting/server/indexer/usages/build.xml

 <project name="org.netbeans.modules.jackpot30.indexer.usages" default="netbeans" basedir=".">
     <description>Builds, tests, and runs the project org.netbeans.modules.jackpot30.indexer.usages.</description>
     <import file="nbproject/build-impl.xml"/>
+    <import file="${suite.dir}/../../../findbugs-import.xml"/>
 </project>
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
+
+Copyright 1997-2009 Sun Microsystems, Inc. All rights reserved.
+
+
+The contents of this file are subject to the terms of either the GNU
+General Public License Version 2 only ("GPL") or the Common
+Development and Distribution License("CDDL") (collectively, the
+"License"). You may not use this file except in compliance with the
+License. You can obtain a copy of the License at
+http://www.netbeans.org/cddl-gplv2.html
+or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
+specific language governing permissions and limitations under the
+License.  When distributing the software, include this License Header
+Notice in each file and include the License file at
+nbbuild/licenses/CDDL-GPL-2-CP.  Sun designates this
+particular file as subject to the "Classpath" exception as provided
+by Sun in the GPL Version 2 section of the License file that
+accompanied this code. If applicable, add the following below the
+License Header, with the fields enclosed by brackets [] replaced by
+your own identifying information:
+"Portions Copyrighted [year] [name of copyright owner]"
+
+Contributor(s):
+
+The Original Software is NetBeans. The Initial Developer of the Original
+Software is Sun Microsystems, Inc. Portions Copyright 1997-2009 Sun
+Microsystems, Inc. All Rights Reserved.
+
+If you wish your version of this file to be governed by only the CDDL
+or only the GPL Version 2, indicate your decision by adding
+"[Contributor] elects to include this software in this distribution
+under the [CDDL or GPL Version 2] license." If you do not indicate a
+single choice of license, a recipient has the option to distribute
+your version of this file under either the CDDL, the GPL Version 2 or
+to extend the choice of license to its licensees as provided above.
+However, if you add GPL Version 2 code and therefore, elected the GPL
+Version 2 license, then the option applies only if the new code is
+made subject to such option by the copyright holder.
+-->
+<project name="suite-common" basedir=".">
+    <target name="jackpot" depends="-init">
+        <subant target="jackpot" buildpath="${modules.sorted}" inheritrefs="false" inheritall="false">
+        </subant>
+    </target>
+</project>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.