First stab at reprojectizing cnd modules. In 5.5* cnd was built by a cnd6_fortran_root
authorgordonp@netbeans.org
Mon, 11 Jun 2007 22:04:52 +0000
changeset 22820fa0dcbfe632
parent 2281 6ce414feaa43
child 2283 7295e34250e0
First stab at reprojectizing cnd modules. In 5.5* cnd was built by a
suite and the individual modules were module projects. To become part
of trunk builds they must become freeform ant projects.
cnd/build.xml
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/cnd/build.xml	Mon Jun 11 22:04:52 2007 +0000
     1.3 @@ -0,0 +1,111 @@
     1.4 +<?xml version="1.0" encoding="UTF-8"?>
     1.5 +<!--
     1.6 +The contents of this file are subject to the terms of the Common Development
     1.7 +and Distribution License (the License). You may not use this file except in
     1.8 +compliance with the License.
     1.9 +
    1.10 +You can obtain a copy of the License at http://www.netbeans.org/cddl.html
    1.11 +or http://www.netbeans.org/cddl.txt.
    1.12 +
    1.13 +When distributing Covered Code, include this CDDL Header Notice in each file
    1.14 +and include the License file at http://www.netbeans.org/cddl.txt.
    1.15 +If applicable, add the following below the CDDL Header, with the fields
    1.16 +enclosed by brackets [] replaced by your own identifying information:
    1.17 +"Portions Copyrighted [year] [name of copyright owner]"
    1.18 +
    1.19 +The Original Software is NetBeans. The Initial Developer of the Original
    1.20 +Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
    1.21 +Microsystems, Inc. All Rights Reserved.
    1.22 +-->
    1.23 +
    1.24 +<project name="cnd" default="netbeans" basedir=".">
    1.25 +
    1.26 +    <property name="nbroot" location=".."/>
    1.27 +    <property name="nbext_root" location="${nbroot}/nbbuild"/>
    1.28 +    <property name="cluster.config" value="cnd"/>
    1.29 +
    1.30 +    <taskdef  name="for-each" classname="org.netbeans.nbbuild.ForEach" classpath="${nbext_root}/nbantext.jar"/>
    1.31 +    <property name="submodules" value="core, makeproject, modelapi, modelimpl, classview, completion, gdb, modelutil, qnavigator, antlr, modelui, highlight, gotodeclaration, update, apt, folding, dwarfdump, repository, discovery, dwarfdiscovery, modeldiscovery, term"/>
    1.32 +
    1.33 +    <property name="build.compiler.debug" value="on"/>
    1.34 +
    1.35 +
    1.36 +    <target name="init">
    1.37 +        <property name="buildnumber" value="dev"/>
    1.38 +        <echo message="buildnumber = ${buildnumber}"/>
    1.39 +    </target>
    1.40 +
    1.41 +    <target name="compile">
    1.42 +        <for-each locations="${submodules}"/>
    1.43 +    </target>
    1.44 +
    1.45 +    <target name="jars" depends="init,compile">
    1.46 +        <for-each locations="${submodules}"/>
    1.47 +    </target>
    1.48 +
    1.49 +    <target name="release">
    1.50 +        <for-each locations="${submodules}"/>
    1.51 +    </target>
    1.52 +
    1.53 +    <target name="javahelp">
    1.54 +        <for-each locations="${submodules}"/>
    1.55 +    </target>
    1.56 +
    1.57 +    <target name="netbeans" depends="jars,release,javahelp">
    1.58 +        <for-each locations="${submodules}"/>
    1.59 +    </target>
    1.60 +
    1.61 +    <target name="nbm" depends="netbeans">
    1.62 +        <for-each locations="${submodules}"/>
    1.63 +    </target>
    1.64 +
    1.65 +    <target name="clean">
    1.66 +        <delete file="cnd-nbms.zip"/>
    1.67 +
    1.68 +        <for-each locations="${submodules}"/>
    1.69 +    </target>
    1.70 +
    1.71 +    <target name="real-clean" depends="clean">
    1.72 +        <delete dir="javadoc"/>
    1.73 +
    1.74 +        <for-each locations="${submodules}"/>
    1.75 +    </target>
    1.76 +
    1.77 +    <target name="all" depends="clean,nbm">
    1.78 +        <for-each locations="${submodules}"/>
    1.79 +    </target>
    1.80 +
    1.81 +    <target name="javadoc">
    1.82 +        <for-each locations="${submodules}"/>
    1.83 +    </target>
    1.84 +
    1.85 +
    1.86 +    <!-- Build cnd module and all modules which is depend on. -->
    1.87 +    <target name="all-cnd" depends="all-depend,clean,netbeans"/>
    1.88 +
    1.89 +    <target name="all-depend">
    1.90 +        <property name="modules" value="../openide, ../core, ../editor"/>
    1.91 +        <for-each locations="${modules}" target="clean"/>
    1.92 +        <for-each locations="${modules}" target="jars"/>
    1.93 +    </target>
    1.94 +
    1.95 +
    1.96 +    <!-- Update www documents. -->
    1.97 +    <target name="www">
    1.98 +        <ant dir="www" target="all"/>
    1.99 +    </target>
   1.100 +
   1.101 +
   1.102 +    <!-- Create zip archive from all nbm files. -->
   1.103 +    <target name="zip" depends="nbm">
   1.104 +        <zip zipfile="cnd-nbms.zip"
   1.105 +             basedir="."
   1.106 +             includes="*.nbm"
   1.107 +             compress="true"/>
   1.108 +    </target>
   1.109 +
   1.110 +    <target name="test">
   1.111 +        <for-each locations="${submodules}"/>
   1.112 +    </target>
   1.113 +
   1.114 +</project>