1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185
|
<?xml version='1.0' encoding='ISO-8859-1' ?>
<!--
This module is part of NetBeans and is open-source.
You can see http://www.netbeans.org/about/legal/index.html for details.
You may use the binary however you like. The source file license is:
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
Copyright 1997-2010 Oracle and/or its affiliates. All rights reserved.
Oracle and Java are registered trademarks of Oracle and/or its affiliates.
Other names may be trademarks of their respective owners.
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. Oracle 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-2007 Sun
Microsystems, Inc. All Rights Reserved.
-->
<project name="ModelDump" default="jar" basedir=".">
<property name="project.dm-utils" value="../dm-utils"/>
<property name="module-jar-name" value="ModelDump.jar"/>
<property name="src.dir" value="./src"/>
<property name="build.dir" value="./build"/>
<property name="dist.dir" value="./dist"/>
<property name="classes.dir" value="./build/classes"/>
<property name="build.compiler.debug" value="yes"/>
<property name="args" value=""/>
<property name="jvmargs" value="-Xmx512M"/>
<property name="test.dir" value="."/>
<property name="main.class" value="modeldump.ModelDump"/>
<property name="nbdist.path" value="../../../../nbbuild/netbeans"/>
<property name="platform" value="platform"/>
<property name="ide" value="ide"/>
<property name="cnddist.path" value="../../../../nbbuild/netbeans/cnd"/>
<path id="cnd.modules">
<fileset dir="${cnddist.path}/modules">
<include name="org-netbeans-modules-cnd-dwarfdump.jar"/>
<include name="org-netbeans-modules-cnd-api-model.jar"/>
<include name="org-netbeans-modules-cnd-modelimpl.jar"/>
<include name="org-netbeans-modules-cnd-antlr.jar"/>
<include name="org-netbeans-modules-cnd-makeproject.jar"/>
<include name="org-netbeans-modules-cnd.jar"/>
<include name="org-netbeans-modules-cnd-apt.jar"/>
<include name="org-netbeans-modules-cnd-repository.jar"/>
<include name="org-netbeans-modules-cnd-repository-api.jar"/>
<include name="org-netbeans-modules-cnd-api-project.jar"/>
<include name="org-netbeans-modules-cnd-utils.jar"/>
</fileset>
<fileset dir="${nbdist.path}/${platform}/modules">
<include name="org-openide-nodes.jar"/>
<include name="org-openide-loaders.jar"/>
<include name="org-netbeans-api-progress.jar"/>
<include name="org-netbeans-modules-queries.jar"/>
</fileset>
<fileset dir="${nbdist.path}/${platform}/core">
<include name="core.jar"/>
<include name="org-openide-filesystems.jar"/>
</fileset>
<fileset dir="${nbdist.path}/${platform}/lib">
<include name="org-openide-util.jar"/>
<include name="org-openide-modules.jar"/>
<include name="boot.jar"/>
</fileset>
<fileset dir="${nbdist.path}/${ide}/modules">
<include name="org-netbeans-modules-projectuiapi.jar"/>
<include name="org-netbeans-modules-projectapi.jar"/>
</fileset>
</path>
<path id="platform.modules">
<fileset dir="${nbdist.path}/${platform}/modules">
<include name="org-openide-loaders.jar"/>
<include name="org-openide-nodes.jar"/>
</fileset>
<fileset dir="${nbdist.path}/${platform}/lib">
<include name="org-openide-util.jar"/>
</fileset>
<fileset dir="${nbdist.path}/${platform}/core">
<include name="org-openide-filesystems.jar"/>
</fileset>
</path>
<path id="ide.modules">
<fileset dir="${nbdist.path}/${ide}/modules">
<include name="org-netbeans-modules-projectapi.jar"/>
</fileset>
</path>
<path id="nb.jars">
<path refid="cnd.modules"/>
<path refid="platform.modules"/>
<path refid="ide.modules"/>
</path>
<target name="deps-clean">
<ant target="clean" inheritall="false" antfile="${project.dm-utils}/build_cli.xml"/>
</target>
<target name="clean" depends="deps-clean">
<delete dir="${classes.dir}"/>
<delete dir="${build.dir}"/>
<delete dir="${dist.dir}"/>
</target>
<target name="deps-jar">
<ant target="jar" inheritall="false" antfile="${project.dm-utils}/build_cli.xml"/>
</target>
<target name="jar" depends="deps-jar, compile">
<mkdir dir="${dist.dir}"/>
<jar jarfile="${dist.dir}/${module-jar-name}"
basedir="${src.dir}"
compress="false">
<fileset dir="${build.dir}/classes" />
<fileset dir="${src.dir}"
includes="**/META-INF/**, **/resources/**, **/Bundle.properties, **/*.gif"
/>
</jar>
</target>
<target name="compile">
<mkdir dir="${classes.dir}" />
<javac
srcdir="${src.dir}"
source="1.5"
destdir="${classes.dir}"
deprecation="${build.compiler.deprecation}"
debug="${build.compiler.debug}"
excludes="**/SCCS/*.java" >
<classpath refid="nb.jars"/>
<classpath>
<pathelement location="${project.dm-utils}/dist/dm-utils.jar"/>
</classpath>
</javac>
</target>
<target name="run" depends="jar">
<echo message="Running ${main.class} with parameters ${args}"/>
<java
classname="${main.class}"
fork="true"
dir="${test.dir}">
<classpath refid="nb.jars"/>
<classpath>
<pathelement location="${dist.dir}/${module-jar-name}"/>
<pathelement location="${project.dm-utils}/dist/dm-utils.jar"/>
</classpath>
<classpath refid="nb.jars"/>
<arg line="${args}"/>
</java>
</target>
</project>
|