| <?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-4.0.jar" /> |
| </and> |
| </condition> |
| </target> |
| |
| <target name="build-init" depends="-check-prepared-jar,projectized.build-init" 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}/javax.servlet.jsp-2.3.2.jar" dest="glassfishjspparser/"/> |
| <unzip src="${jars_location}/javax.el-2.2.6.jar" dest="glassfishjspparser/"/> |
| <unzip src="${jars_location}/glassfish-ee-api-4.1.jar" dest="glassfishjspparser/"/> |
| <unzip src="${jars_location}/common-util-5.0.jar" dest="glassfishjspparser/"/> |
| <delete file="./external/generated-glassfish-jspparser-4.0.jar" /> |
| <zip basedir="glassfishjspparser" |
| includes="org/apache/jasper/**, com/sun/el/**, com/sun/appserv/ClassLoaderUtil.class, com/sun/appserv/server/util/PreprocessorUtil.class, org/glassfish/jsp/api/**" |
| zipfile="./external/generated-glassfish-jspparser-4.0.jar" /> |
| |
| <delete dir="glassfishjspparser" /> |
| </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}"> |
| <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> |