<?xml version ="1.0" encoding ="UTF-8" ?>
<!--
Licensed to the Apache Software Foundation ( ASF ) under one
or more contributor license agreements . See the NOTICE file
distributed with this work for additional information
regarding copyright ownership . The ASF licenses this file
to you under the Apache License , Version 2 . 0 ( the
" License " ) ; you may not use this file except in compliance
with the License . You may obtain a copy of the License at
http : / / www . apache . org / licenses / LICENSE - 2 . 0
Unless required by applicable law or agreed to in writing ,
software distributed under the License is distributed on an
" AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND , either express or implied . See the License for the
specific language governing permissions and limitations
under the License .
-->
<project basedir="." default="build" name="enterprise/web.jspparser" >
<import file="../../nbbuild/templates/projectized.xml" />
<target name="-check-prepared-jar" >
<condition property="web.jspparser.jarcreated" value="present" >
<and>
<available file="external/generated-glassfish-jspparser-5.1.0.jar" />
</and>
</condition>
<condition property="web.jspparser.tagsjarcreated" value="present" >
<and>
<available file="test/unit/data/emptyWebProject/lib/tags.jar" />
</and>
</condition>
</target>
<target name="-prepareparser-parser" depends="-check-prepared-jar" unless="web.jspparser.jarcreated" >
<property name="jars_location" location="./external" />
<fail message="Set jars_location" >
<condition>
<not>
<available file="${jars_location}" type ="dir" />
</not>
</condition>
</fail>
<!-- glassfish-jspparser.jar -->
<echo message="Creating glassfish-jspparser.jar" />
<mkdir dir="glassfishjspparser" />
<unzip src="${jars_location}/jakarta.servlet.jsp-2.3.6.jar" dest="glassfishjspparser/" />
<unzip src="${jars_location}/jakarta.el-3.0.4.jar" dest="glassfishjspparser/" />
<unzip src="${jars_location}/glassfish-ee-api-5.1.0.jar" dest="glassfishjspparser/" />
<unzip src="${jars_location}/common-util-5.1.0.jar" dest="glassfishjspparser/" />
<delete file="./external/generated-glassfish-jspparser-5.1.0.jar" />
<zip basedir="glassfishjspparser"
includes="org/apache/jasper/**, com/sun/el/**, com/sun/appserv/server/util/PreprocessorUtil.class, org/glassfish/jsp/api/**"
zipfile="./external/generated-glassfish-jspparser-5.1.0.jar" />
<delete dir="glassfishjspparser" />
</target>
<target name="-prepare-tags-jar" depends="-check-prepared-jar" unless="web.jspparser.tagsjarcreated" >
<jar destfile="test/unit/data/emptyWebProject/lib/tags.jar" >
<fileset dir="test/unit/data/emptyWebProject/lib/tags/" includes="**/*" excludes="**/.jar" />
</jar>
</target>
<target name="build-init" depends="-prepareparser-parser,-prepare-tags-jar,projectized.build-init" >
<mkdir dir="test/unit/data/project2/lib" />
<copy file="test/unit/data/emptyWebProject/lib/tags.jar" tofile="test/unit/data/project2/lib/tags.jar" />
<copy file="external/jakarta.servlet.jsp.jstl-1.2.6.jar" tofile="test/unit/data/project2/lib/standard.jar" />
<copy file="external/jakarta.servlet.jsp.jstl-api-1.2.7.jar" tofile="test/unit/data/project2/lib/jstl.jar" />
<copy file="external/commons-logging-1.3.1.jar" tofile="test/unit/data/project2/lib/commons-logging-api.jar" />
</target>
<target name="ext-compile" >
<mkdir dir="build/extclasses" />
<javac srcdir="extsrc" destdir="build/extclasses" deprecation="${build.compiler.deprecation}" debug="${build.compiler.debug}" source="${javac.source}" release="8" target="1.8" >
<classpath>
<path path="${module.classpath}" />
<path location="${cluster}/${module.jar}" />
<path path="${extsrc.cp.extra}" />
</classpath>
</javac>
<copy todir="build/extclasses" >
<fileset dir="extsrc" excludes="${jar-excludes}" />
</copy>
<property name="jars_location" location="./external" />
<fail message="Set jars_location" >
<condition>
<not>
<available file="${jars_location}" type ="dir" />
</not>
</condition>
</fail>
</target>
<target name="ext-jar" depends="ext-compile" >
<mkdir dir="${cluster}/modules/ext" />
<jar jarfile="${cluster}/modules/ext/jsp-parser-ext.jar" compress="false" >
<fileset dir="build/extclasses" />
</jar>
</target>
<target name="netbeans-extra" depends="release,ext-jar" />
</project>
Messung V0.5 in Prozent C=96 H=95 G=95
¤ Dauer der Verarbeitung: 0.2 Sekunden
¤
*© Formatika GbR, Deutschland