[507] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
| 2 | <!--
|
---|
| 3 | *** GENERATED FROM project.xml - DO NOT EDIT ***
|
---|
| 4 | *** EDIT ../build.xml INSTEAD ***
|
---|
| 5 |
|
---|
| 6 | For the purpose of easier reading the script
|
---|
| 7 | is divided into following sections:
|
---|
| 8 |
|
---|
| 9 | - initialization
|
---|
| 10 | - compilation
|
---|
| 11 | - dist
|
---|
| 12 | - execution
|
---|
| 13 | - debugging
|
---|
| 14 | - cleanup
|
---|
| 15 |
|
---|
| 16 | -->
|
---|
| 17 | <project name="AdapterCA-jbi-impl" default="build" basedir="..">
|
---|
| 18 | <target name="default" depends="dist" description="Build whole project."/>
|
---|
| 19 | <!--
|
---|
| 20 | INITIALIZATION SECTION
|
---|
| 21 | -->
|
---|
| 22 | <target name="pre-init">
|
---|
| 23 | <!-- Empty placeholder for easier customization. -->
|
---|
| 24 | <!-- You can override this target in the ../build.xml file. -->
|
---|
| 25 | </target>
|
---|
| 26 | <target name="init-private" depends="pre-init">
|
---|
| 27 | <property file="nbproject/private/private.properties"/>
|
---|
| 28 | </target>
|
---|
| 29 | <target name="init-userdir" depends="pre-init,init-private">
|
---|
| 30 | <property name="user.properties.file" location="${netbeans.user}/build.properties"/>
|
---|
| 31 | </target>
|
---|
| 32 | <target name="init-user" depends="pre-init,init-private,init-userdir">
|
---|
| 33 | <property file="${user.properties.file}"/>
|
---|
| 34 | </target>
|
---|
| 35 | <target name="init-project" depends="pre-init,init-private,init-userdir,init-user">
|
---|
| 36 | <property file="nbproject/project.properties"/>
|
---|
| 37 | </target>
|
---|
| 38 | <target name="do-init" depends="pre-init,init-private,init-userdir,init-user,init-project">
|
---|
| 39 | <!-- The two properties below are usually overridden -->
|
---|
| 40 | <!-- by the active platform. Just a fallback. -->
|
---|
| 41 | <property name="default.javac.source" value="1.4"/>
|
---|
| 42 | <property name="default.javac.target" value="1.4"/>
|
---|
| 43 | <condition property="have.tests">
|
---|
| 44 | <or>
|
---|
| 45 | <available file="${test.dir}"/>
|
---|
| 46 | </or>
|
---|
| 47 | </condition>
|
---|
| 48 | <condition property="netbeans.home+have.tests">
|
---|
| 49 | <and>
|
---|
| 50 | <isset property="netbeans.home"/>
|
---|
| 51 | <isset property="have.tests"/>
|
---|
| 52 | </and>
|
---|
| 53 | </condition>
|
---|
| 54 | </target>
|
---|
| 55 | <target name="post-init">
|
---|
| 56 | <!-- Empty placeholder for easier customization. -->
|
---|
| 57 | <!-- You can override this target in the ../build.xml file. -->
|
---|
| 58 | </target>
|
---|
| 59 | <target name="init-check" depends="pre-init,init-private,init-userdir,init-user,init-project,do-init">
|
---|
| 60 | <fail unless="src.dir">Must set src.dir</fail>
|
---|
| 61 | <fail unless="build.dir">Must set build.dir</fail>
|
---|
| 62 | <fail unless="build.generated.dir">Must set build.generated.dir</fail>
|
---|
| 63 | <fail unless="dist.dir">Must set dist.dir</fail>
|
---|
| 64 | <fail unless="build.classes.dir">Must set build.classes.dir</fail>
|
---|
| 65 | <fail unless="dist.jar">Must set dist.jar</fail>
|
---|
| 66 | <fail unless="test.dir">Must set test.dir</fail>
|
---|
| 67 | </target>
|
---|
| 68 | <target name="-init-taskdefs" if="from.commandline">
|
---|
| 69 | <path id="ant.task.classpath">
|
---|
| 70 | <pathelement location="${soa.module.install.dir}/org-netbeans-modules-compapp-projects-jbi.jar"/>
|
---|
| 71 | <pathelement location="${soa.module.install.dir}/org-netbeans-modules-compapp-manager-jbi.jar"/>
|
---|
| 72 | <pathelement location="${soa.module.install.dir}/org-netbeans-soa-libs-xmlbeans.jar"/>
|
---|
| 73 | <pathelement location="${soa.module.install.dir}/ext/jbi/jbi-admin-common.jar"/>
|
---|
| 74 | <pathelement location="${soa.module.install.dir}/../ant/nblib/org-netbeans-modules-compapp-projects-jbi.jar"/>
|
---|
| 75 | <pathelement location="${netbeans.home}/lib/org-openide-util.jar"/>
|
---|
| 76 | <pathelement location="${netbeans.home}/lib/org-openide-modules.jar"/>
|
---|
| 77 | <pathelement location="${netbeans.home}/modules/org-openide-options.jar"/>
|
---|
| 78 | <pathelement location="${netbeans.home}/modules/org-openide-text.jar"/>
|
---|
| 79 | <pathelement location="${netbeans.home}/modules/org-openide-loaders.jar"/>
|
---|
| 80 | <pathelement location="${netbeans.home}/modules/org-openide-nodes.jar"/>
|
---|
| 81 | <pathelement location="${netbeans.home}/modules/org-openide-dialogs.jar"/>
|
---|
| 82 | <pathelement location="${netbeans.home}/core/org-openide-filesystems.jar"/>
|
---|
| 83 | <pathelement location="${ide.module.install.dir}/modules/ext/xerces-2.8.0.jar"/>
|
---|
| 84 | <pathelement location="${ide.module.install.dir}/ext/xml-commons-dom-ranges-1.0.b2.jar"/>
|
---|
| 85 | <pathelement location="${ide.module.install.dir}/org-netbeans-modules-xml-retriever.jar"/>
|
---|
| 86 | <pathelement location="${ide.module.install.dir}/org-netbeans-modules-xml-schema-model.jar"/>
|
---|
| 87 | <pathelement location="${ide.module.install.dir}/org-netbeans-modules-xml-wsdl-model.jar"/>
|
---|
| 88 | <pathelement location="${ide.module.install.dir}/org-netbeans-modules-xml-xam.jar"/>
|
---|
| 89 | <pathelement location="${ide.module.install.dir}/org-netbeans-modules-xml-text.jar"/>
|
---|
| 90 | <pathelement location="${ide.module.install.dir}/org-netbeans-modules-editor.jar"/>
|
---|
| 91 | <pathelement location="${ide.module.install.dir}/org-netbeans-modules-editor-lib.jar"/>
|
---|
| 92 | <pathelement location="${ide.module.install.dir}/org-netbeans-modules-editor-util.jar"/>
|
---|
| 93 | <pathelement location="${ide.module.install.dir}/org-netbeans-modules-projectapi.jar"/>
|
---|
| 94 | <pathelement location="${ide.module.install.dir}/org-netbeans-modules-classfile.jar"/>
|
---|
| 95 | <pathelement location="${ide.module.install.dir}/org-apache-xml-resolver.jar"/>
|
---|
| 96 | <pathelement location="${xml.module.install.dir}/org-netbeans-modules-xml-wsdl-extensions.jar"/>
|
---|
| 97 | <pathelement location="${java.module.install.dir}/ext/jaxws21/api/jaxb-api.jar"/>
|
---|
| 98 | <pathelement location="${java.module.install.dir}/ext/jaxws21/jaxb-impl.jar"/>
|
---|
| 99 | <pathelement location="${java.module.install.dir}/ext/jaxws21/activation.jar"/>
|
---|
| 100 | <pathelement location="${enterprise.module.install.dir}/org-netbeans-modules-j2eeserver.jar"/>
|
---|
| 101 | <pathelement location="${enterprise.module.install.dir}/ext/jsr88javax.jar"/>
|
---|
| 102 | </path>
|
---|
| 103 | <taskdef name="jbi-build-service-assembly" classname="org.netbeans.modules.compapp.projects.jbi.anttasks.BuildServiceAssembly">
|
---|
| 104 | <classpath refid="ant.task.classpath"/>
|
---|
| 105 | </taskdef>
|
---|
| 106 | <taskdef name="jbi-deploy-service-assembly" classname="org.netbeans.modules.compapp.projects.jbi.anttasks.DeployServiceAssembly">
|
---|
| 107 | <classpath refid="ant.task.classpath"/>
|
---|
| 108 | </taskdef>
|
---|
| 109 | <taskdef name="setup-debug-environment" classname="org.netbeans.modules.compapp.projects.jbi.anttasks.SetUpDebugEnvironment">
|
---|
| 110 | <classpath refid="ant.task.classpath"/>
|
---|
| 111 | </taskdef>
|
---|
| 112 | <taskdef name="teardown-debug-environment" classname="org.netbeans.modules.compapp.projects.jbi.anttasks.TearDownDebugEnvironment">
|
---|
| 113 | <classpath refid="ant.task.classpath"/>
|
---|
| 114 | </taskdef>
|
---|
| 115 | <taskdef name="jbi-javaee-dist" classname="org.netbeans.modules.compapp.projects.jbi.anttasks.BuildJavaEESU">
|
---|
| 116 | <classpath refid="ant.task.classpath"/>
|
---|
| 117 | </taskdef>
|
---|
| 118 | </target>
|
---|
| 119 | <target name="init" depends="pre-init,init-private,init-userdir,init-user,init-project,do-init,post-init,init-check,-init-taskdefs"/>
|
---|
| 120 | <!--
|
---|
| 121 | COMPILATION SECTION
|
---|
| 122 | -->
|
---|
| 123 | <target name="deps-jar" depends="init" unless="${no.dependencies}">
|
---|
| 124 | <ant target="dist_se" inheritall="false" antfile="${project.AdapterBPEL}/build.xml"/>
|
---|
| 125 | <property name="AdapterBPEL.su.name" value="AdapterBPEL"/>
|
---|
| 126 | <unzip src="${reference.AdapterBPEL.dist_se}" dest="${src.dir}/../jbiServiceUnits/${AdapterBPEL.su.name}">
|
---|
| 127 | <patternset>
|
---|
| 128 | <include name="**/*.wsdl"/>
|
---|
| 129 | <include name="**/*.WSDL"/>
|
---|
| 130 | <include name="**/*.xsd"/>
|
---|
| 131 | <include name="**/*.XSD"/>
|
---|
| 132 | <include name="META-INF/jbi.xml"/>
|
---|
| 133 | <include name="META-INF/catalog.xml"/>
|
---|
| 134 | </patternset>
|
---|
| 135 | </unzip>
|
---|
| 136 | <property name="AdapterBPEL.su.dir" value="${src.dir}/../jbiServiceUnits/${AdapterBPEL.su.name}"/>
|
---|
| 137 | <move file="${AdapterBPEL.su.dir}/META-INF/jbi.xml" todir="${AdapterBPEL.su.dir}"/>
|
---|
| 138 | <move todir="${src.dir}/../jbiServiceUnits/META-INF/${AdapterBPEL.su.name}">
|
---|
| 139 | <fileset dir="${AdapterBPEL.su.dir}/META-INF"/>
|
---|
| 140 | </move>
|
---|
| 141 | </target>
|
---|
| 142 | <target name="deps-javaee-jar" depends="init" unless="${no.dependencies}"/>
|
---|
| 143 | <target name="pre-pre-compile" depends="init,deps-jar">
|
---|
| 144 | <mkdir dir="${build.classes.dir}"/>
|
---|
| 145 | </target>
|
---|
| 146 | <target name="pre-compile">
|
---|
| 147 | <!-- Empty placeholder for easier customization. -->
|
---|
| 148 | <!-- You can override this target in the ../build.xml file. -->
|
---|
| 149 | </target>
|
---|
| 150 | <target name="library-inclusion-in-archive" depends="compile">
|
---|
| 151 | <unjar dest="${build.classes.dir}" src="${reference.AdapterBPEL.dist_se}"/>
|
---|
| 152 | </target>
|
---|
| 153 | <target name="library-inclusion-in-manifest" depends="compile">
|
---|
| 154 | <basename property="included.lib.reference.AdapterBPEL.dist_se" file="${reference.AdapterBPEL.dist_se}"/>
|
---|
| 155 | <copy todir="${build.classes.dir}" file="${reference.AdapterBPEL.dist_se}"/>
|
---|
| 156 | <manifest file="${build.classes.dir}/META-INF/MANIFEST.MF" mode="update">
|
---|
| 157 | <attribute name="Class-Path" value="${included.lib.reference.AdapterBPEL.dist_se}"/>
|
---|
| 158 | </manifest>
|
---|
| 159 | </target>
|
---|
| 160 | <target name="do-compile" depends="init,deps-jar,pre-pre-compile,pre-compile"/>
|
---|
| 161 | <target name="post-compile">
|
---|
| 162 | <!-- Empty placeholder for easier customization. -->
|
---|
| 163 | <!-- You can override this target in the ../build.xml file. -->
|
---|
| 164 | </target>
|
---|
| 165 | <target name="compile" depends="init,deps-jar,pre-pre-compile,pre-compile,do-compile,post-compile" description="Compile project."/>
|
---|
| 166 | <target name="pre-compile-single">
|
---|
| 167 | <!-- Empty placeholder for easier customization. -->
|
---|
| 168 | <!-- You can override this target in the ../build.xml file. -->
|
---|
| 169 | </target>
|
---|
| 170 | <target name="do-compile-single" depends="init,deps-jar,pre-pre-compile">
|
---|
| 171 | <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
|
---|
| 172 | </target>
|
---|
| 173 | <target name="post-compile-single">
|
---|
| 174 | <!-- Empty placeholder for easier customization. -->
|
---|
| 175 | <!-- You can override this target in the ../build.xml file. -->
|
---|
| 176 | </target>
|
---|
| 177 | <target name="compile-single" depends="init,deps-jar,pre-pre-compile,pre-compile-single,do-compile-single,post-compile-single"/>
|
---|
| 178 | <!--
|
---|
| 179 | DIST BUILDING SECTION
|
---|
| 180 | -->
|
---|
| 181 | <target name="jbi-build" depends="init,init-deploy,deps-jar, deps-javaee-jar" description="Build Service Assembly.">
|
---|
| 182 | <mkdir dir="${src.dir}"/>
|
---|
| 183 | <copy todir="${src.dir}/../jbiServiceUnits" overwrite="true">
|
---|
| 184 | <fileset dir="${src.dir}"/>
|
---|
| 185 | </copy>
|
---|
| 186 | <mkdir dir="${build.dir}/META-INF"/>
|
---|
| 187 | <echo message="AdapterBPEL.su.name = ${AdapterBPEL.su.name}"/>
|
---|
| 188 | <copy todir="${build.dir}/META-INF/${AdapterBPEL.su.name}">
|
---|
| 189 | <fileset dir="${src.dir}/../jbiServiceUnits/META-INF/${AdapterBPEL.su.name}"/>
|
---|
| 190 | </copy>
|
---|
| 191 |
|
---|
| 192 | <jar compress="true" jarfile="${build.dir}/BCDeployment.jar">
|
---|
| 193 | <fileset dir="${src.dir}/../jbiServiceUnits">
|
---|
| 194 | <exclude name="**/catalog.xml"/>
|
---|
| 195 | <exclude name="**/jbi.xml"/>
|
---|
| 196 | </fileset>
|
---|
| 197 | </jar>
|
---|
| 198 | <jbi-build-service-assembly/>
|
---|
| 199 | <delete file="${build.dir}/BCDeployment.jar"/>
|
---|
| 200 | <dirname property="dist.jar.dir" file="${dist.jar}"/>
|
---|
| 201 | <mkdir dir="${dist.jar.dir}"/>
|
---|
| 202 | <echo message="dist.jar = ${dist.jar}"/>
|
---|
| 203 | <jar compress="${jar.compress}" jarfile="${dist.jar}" filesetmanifest="merge">
|
---|
| 204 | <fileset dir="${build.dir}" excludes="jar/*"/>
|
---|
| 205 | </jar>
|
---|
| 206 | </target>
|
---|
| 207 | <target name="jbi-clean-build" depends="init,init-deploy,clean,jbi-build" description="Clean and Build Service Assembly."/>
|
---|
| 208 | <target name="dist" depends="jbi-build" description="Build distribution (JAR)."/>
|
---|
| 209 | <!--
|
---|
| 210 | EXECUTION SECTION
|
---|
| 211 | -->
|
---|
| 212 | <target name="run" depends="jbi-build,run-jbi-deploy" description="Deploy to server."/>
|
---|
| 213 | <target name="init-deploy">
|
---|
| 214 | <property name="include.jar.manifest" value=""/>
|
---|
| 215 | </target>
|
---|
| 216 | <target name="run-jbi-deploy" depends="jbi-build">
|
---|
| 217 | <property name="j2ee.server.instance" value=""/>
|
---|
| 218 | <loadproperties srcFile="${basedir}/nbproject/private/private.properties"/>
|
---|
| 219 | <jbi-deploy-service-assembly serviceAssemblyID="${jbi.service-assembly.id}" serviceAssemblyLocation="${basedir}/${dist.jar}" netBeansUserDir="${netbeans.user}" j2eeServerInstance="${j2ee.server.instance}"/>
|
---|
| 220 | </target>
|
---|
| 221 | <target name="undeploy" depends="init">
|
---|
| 222 | <property name="j2ee.server.instance" value=""/>
|
---|
| 223 | <loadproperties srcFile="${basedir}/nbproject/private/private.properties"/>
|
---|
| 224 | <jbi-deploy-service-assembly undeployServiceAssembly="true" serviceAssemblyID="${jbi.service-assembly.id}" serviceAssemblyLocation="${basedir}/${dist.jar}" netBeansUserDir="${netbeans.user}" j2eeServerInstance="${j2ee.server.instance}"/>
|
---|
| 225 | </target>
|
---|
| 226 | <target name="-pre-debug">
|
---|
| 227 | <property name="inDebug" value="true"/>
|
---|
| 228 | <setup-debug-environment netBeansUserDir="${netbeans.user}" j2eeServerInstance="${j2ee.server.instance}"/>
|
---|
| 229 | </target>
|
---|
| 230 | <target name="-post-debug">
|
---|
| 231 | <property name="inDebug" value="false"/>
|
---|
| 232 | <teardown-debug-environment netBeansUserDir="${netbeans.user}" j2eeServerInstance="${j2ee.server.instance}"/>
|
---|
| 233 | </target>
|
---|
| 234 | <!--
|
---|
| 235 | DEBUGGING SECTION
|
---|
| 236 | -->
|
---|
| 237 | <target name="debug" description="Debug project in IDE." depends="run,-pre-debug" if="netbeans.home"/>
|
---|
| 238 | <target name="pre-debug-fix" depends="init">
|
---|
| 239 | <fail unless="fix.includes">Must set fix.includes</fail>
|
---|
| 240 | <property name="javac.includes" value="${fix.includes}.java"/>
|
---|
| 241 | </target>
|
---|
| 242 | <target name="do-debug-fix" if="netbeans.home" depends="init,pre-debug-fix,compile-single">
|
---|
| 243 | <j2seproject:nbjpdareload xmlns:j2seproject="http://www.netbeans.org/ns/j2se-project/1"/>
|
---|
| 244 | </target>
|
---|
| 245 | <target name="debug-fix" if="netbeans.home" depends="init,pre-debug-fix,do-debug-fix"/>
|
---|
| 246 | <!--
|
---|
| 247 | CLEANUP SECTION
|
---|
| 248 | -->
|
---|
| 249 | <target name="deps-clean" depends="init" unless="${no.dependencies}">
|
---|
| 250 | <ant target="clean" inheritall="false" antfile="${project.AdapterBPEL}/build.xml"/>
|
---|
| 251 | </target>
|
---|
| 252 | <target name="do-clean" depends="init">
|
---|
| 253 | <delete dir="${build.dir}"/>
|
---|
| 254 | <delete dir="${dist.dir}"/>
|
---|
| 255 | <delete dir="${source.root}/jbiServiceUnits"/>
|
---|
| 256 | </target>
|
---|
| 257 | <target name="post-clean">
|
---|
| 258 | <!-- Empty placeholder for easier customization. -->
|
---|
| 259 | <!-- You can override this target in the ../build.xml file. -->
|
---|
| 260 | </target>
|
---|
| 261 | <target name="clean" depends="init,deps-clean,do-clean,post-clean" description="Clean build products."/>
|
---|
| 262 | <target name="jbi-clean-config" depends="init,clear-casa,jbi-clean-build" description="Clean service assembly."/>
|
---|
| 263 | <target name="clear-casa">
|
---|
| 264 | <delete file="${source.root}/conf/${jbi.service-assembly.id}.casa"/>
|
---|
| 265 | <delete file="${src.dir}/${jbi.service-assembly.id}.wsdl"/>
|
---|
| 266 | </target>
|
---|
| 267 | <!--
|
---|
| 268 | JUNIT EXECUTION SECTION
|
---|
| 269 | =======================
|
---|
| 270 | -->
|
---|
| 271 | <target name="-pre-test-run" if="have.tests" depends="init">
|
---|
| 272 | <mkdir dir="${test.results.dir}"/>
|
---|
| 273 | <path id="unit.test.classpath">
|
---|
| 274 | <pathelement path="${soa.module.install.dir}/org-netbeans-modules-compapp-manager-jbi.jar"/>
|
---|
| 275 | <pathelement path="${soa.module.install.dir}/org-netbeans-modules-compapp-projects-jbi.jar"/>
|
---|
| 276 | <pathelement path="${soa.module.install.dir}/ext/jbi/jbi-admin-common.jar"/>
|
---|
| 277 | <pathelement path="${soa.module.install.dir}/ext/jbi/catd.jar"/>
|
---|
| 278 | <pathelement path="${java.module.install.dir}/ext/junit-3.8.2.jar"/>
|
---|
| 279 | <pathelement path="${java.module.install.dir}/ext/jaxws21/api/saaj-api.jar"/>
|
---|
| 280 | <pathelement path="${java.module.install.dir}/ext/jaxws21/saaj-impl.jar"/>
|
---|
| 281 | <pathelement path="${java.module.install.dir}/ext/jaxws21/FastInfoset.jar"/>
|
---|
| 282 | <pathelement path="${ide.module.install.dir}/org-netbeans-modules-editor-lib.jar"/>
|
---|
| 283 | <pathelement path="${ide.module.install.dir}/org-netbeans-modules-editor.jar"/>
|
---|
| 284 | <pathelement path="${ide.module.install.dir}/org-netbeans-modules-editor-util.jar"/>
|
---|
| 285 | <pathelement path="${ide.module.install.dir}/org-netbeans-modules-editor-lib2.jar"/>
|
---|
| 286 | <pathelement path="${ide.module.install.dir}/org-netbeans-modules-editor-indent.jar"/>
|
---|
| 287 | <pathelement path="${ide.module.install.dir}/org-netbeans-modules-editor-plain.jar"/>
|
---|
| 288 | <pathelement path="${ide.module.install.dir}/org-netbeans-modules-editor-plain-lib.jar"/>
|
---|
| 289 | <pathelement path="${ide.module.install.dir}/org-netbeans-modules-editor-settings.jar"/>
|
---|
| 290 | <pathelement path="${ide.module.install.dir}/org-netbeans-modules-lexer.jar"/>
|
---|
| 291 | <pathelement path="${ide.module.install.dir}/org-netbeans-modules-xml-core.jar"/>
|
---|
| 292 | <pathelement path="${ide.module.install.dir}/org-netbeans-modules-xml-lexer.jar"/>
|
---|
| 293 | <pathelement path="${ide.module.install.dir}/org-netbeans-modules-xml-text.jar"/>
|
---|
| 294 | <pathelement path="${ide.module.install.dir}/org-netbeans-modules-xml-xdm.jar"/>
|
---|
| 295 | <pathelement path="${ide.module.install.dir}/org-netbeans-modules-xml-xam.jar"/>
|
---|
| 296 | <pathelement path="${netbeans.home}/lib/org-openide-modules.jar"/>
|
---|
| 297 | <pathelement path="${netbeans.home}/lib/org-openide-util.jar"/>
|
---|
| 298 | <pathelement path="${netbeans.home}/modules/org-openide-options.jar"/>
|
---|
| 299 | <pathelement path="${netbeans.home}/modules/org-openide-text.jar"/>
|
---|
| 300 | <pathelement path="${netbeans.home}/modules/org-openide-loaders.jar"/>
|
---|
| 301 | <pathelement path="${netbeans.home}/modules/org-openide-nodes.jar"/>
|
---|
| 302 | <pathelement path="${netbeans.home}/modules/org-netbeans-modules-editor-mimelookup.jar"/>
|
---|
| 303 | <pathelement path="${netbeans.home}/modules/org-netbeans-modules-editor-mimelookup-impl.jar"/>
|
---|
| 304 | <pathelement path="${netbeans.home}/core/org-openide-filesystems.jar"/>
|
---|
| 305 | </path>
|
---|
| 306 | </target>
|
---|
| 307 | <target name="-do-test-run" if="netbeans.home+have.tests" depends="init,-pre-test-run">
|
---|
| 308 | <junit showoutput="true" fork="yes" dir="${basedir}" failureproperty="tests.failed" errorproperty="tests.failed">
|
---|
| 309 | <classpath refid="unit.test.classpath"/>
|
---|
| 310 | <sysproperty key="NetBeansUserDir" value="${netbeans.user}"/>
|
---|
| 311 | <sysproperty key="org.netbeans.modules.compapp.catd.context" value="${org.netbeans.modules.compapp.catd.context}"/>
|
---|
| 312 | <test name="org.netbeans.modules.compapp.catd.ConfiguredTest" haltonfailure="no" todir="${test.results.dir}"/>
|
---|
| 313 | <syspropertyset>
|
---|
| 314 | <propertyref prefix="test-sys-prop."/>
|
---|
| 315 | <mapper to="*" from="test-sys-prop.*" type="glob"/>
|
---|
| 316 | </syspropertyset>
|
---|
| 317 | <formatter usefile="false" type="brief"/>
|
---|
| 318 | <formatter type="xml"/>
|
---|
| 319 | </junit>
|
---|
| 320 | </target>
|
---|
| 321 | <target name="-do-single-test-run" if="netbeans.home+have.tests" depends="init,-pre-test-run">
|
---|
| 322 | <junit showoutput="true" fork="yes" dir="${basedir}" failureproperty="tests.failed" errorproperty="tests.failed">
|
---|
| 323 | <classpath refid="unit.test.classpath"/>
|
---|
| 324 | <sysproperty key="NetBeansUserDir" value="${netbeans.user}"/>
|
---|
| 325 | <sysproperty key="inDebug" value="${inDebug}"/>
|
---|
| 326 | <sysproperty key="org.netbeans.modules.compapp.catd.context" value="${org.netbeans.modules.compapp.catd.context}"/>
|
---|
| 327 | <test name="org.netbeans.modules.compapp.catd.ConfiguredTest" haltonfailure="no" todir="${test.results.dir}"/>
|
---|
| 328 | <syspropertyset>
|
---|
| 329 | <propertyref prefix="test-sys-prop."/>
|
---|
| 330 | <mapper to="*" from="test-sys-prop.*" type="glob"/>
|
---|
| 331 | </syspropertyset>
|
---|
| 332 | <formatter usefile="false" type="brief"/>
|
---|
| 333 | <formatter type="xml"/>
|
---|
| 334 | </junit>
|
---|
| 335 | </target>
|
---|
| 336 | <target name="-post-test-run" if="have.tests" depends="init,-pre-test-run,-do-test-run">
|
---|
| 337 | <fail if="tests.failed">Some tests failed; see details above.</fail>
|
---|
| 338 | </target>
|
---|
| 339 | <target name="-post-single-test-run" if="have.tests" depends="init,-pre-test-run,-do-single-test-run">
|
---|
| 340 | <fail if="tests.failed">Some tests failed; see details above.</fail>
|
---|
| 341 | </target>
|
---|
| 342 | <target name="test-report" if="have.tests" depends="init"/>
|
---|
| 343 | <target name="-test-browse" if="netbeans.home+have.tests" depends="init"/>
|
---|
| 344 | <target name="test" depends="init,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests."/>
|
---|
| 345 | <target name="test-single" depends="init,-pre-test-run,-do-single-test-run,test-report,-post-single-test-run,-test-browse" description="Run unit tests."/>
|
---|
| 346 | <target name="debug-single" depends="init,-pre-test-run,-pre-debug,-do-single-test-run,-post-debug,test-report,-post-single-test-run,-test-browse" description="Debug unit tests."/>
|
---|
| 347 | <target name="-post-unit-test-run" if="have.tests+tests.failed" depends="init,-pre-test-run,-do-test-run">
|
---|
| 348 | <echo>Some tests failed; see details above.</echo>
|
---|
| 349 | </target>
|
---|
| 350 | <target name="unit-test" depends="init,-pre-test-run,-do-test-run,test-report,-post-unit-test-run,-test-browse" description="Run unit tests in a batch."/>
|
---|
| 351 | <target name="jbi-unit-test" depends="run,unit-test,undeploy" description="build, deploy, test, and undeploy."/>
|
---|
| 352 | </project>
|
---|