| <?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 name="libs.freemarker" default="netbeans" basedir="."> |
| <import file="../nbbuild/templates/projectized.xml"/> |
| |
| <property name="freemarker.jar" location="${basedir}/external/freemarker.jar"/> |
| <property name="freemarkerTrimm.jar" location="${basedir}/external/freemarkerTrimm.jar"/> |
| |
| <!-- this makes the freemarker-2.3.8.jar smaller by 300Kb --> |
| <target name="trimm"> |
| <jar destfile="${freemarkerTrimm.jar}" compress="true"> |
| <zipfileset src="${freemarker.jar}"> |
| <include name="**/*"/> |
| <exclude name="freemarker/ext/*"/> |
| <exclude name="freemarker/ext/dom/*"/> |
| <exclude name="freemarker/ext/jdom/*"/> |
| <exclude name="freemarker/ext/rhino/*"/> |
| <exclude name="freemarker/ext/jsp/*"/> |
| <exclude name="freemarker/ext/servlet/*"/> |
| <exclude name="freemarker/ext/xml/*"/> |
| <exclude name="freemarker/log/**/Log4J*"/> |
| <exclude name="freemarker/log/**/Avalon*"/> |
| <exclude name="freemarker/**/*Jython*"/> |
| <exclude name="freemarker/cache/WebappTemplateLoader*"/> |
| </zipfileset> |
| </jar> |
| </target> |
| </project> |