blob: 1526be7e099de6aab55ad2bf03859ce283fa0dcc [file] [log] [blame]
<?xml version="1.0"?>
<!--
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.
-->
<!-- $Id: webapp-build.xml 240255 2005-08-26 14:59:37Z andreas $ -->
<project name="lenya-migration">
<description>
Migration targets
</description>
<target name="migrate-extensions">
<echo>
CAUTION: This target does not work out of the box if you use an external content directory
in publication.xml. Please change the parameters of the target accordingly.
</echo>
<property name="publication" value=""/>
<move todir="${build.webapp}/lenya/pubs">
<fileset dir="${build.webapp}/lenya/pubs/${publication}">
<include name="content/**"/>
<exclude name="content/*/site.xml"/>
<exclude name="content/*/sitetree.xml"/>
</fileset>
<compositemapper>
<mapper type="glob" from="*.xml" to="*"/>
<mapper type="glob" from="*.xml.meta" to="*.meta"/>
</compositemapper>
</move>
</target>
<target name="migrate-14">
<path id="migration.classpath">
<fileset dir="${lib.dir}">
<include name="*.jar"/>
</fileset>
<fileset dir="${build.webapp}/WEB-INF/lib">
<include name="*.jar"/>
</fileset>
<pathelement path="${build.webapp}/WEB-INF/classes"/>
</path>
<java fork="true" classpathref="migration.classpath" classname="org.apache.lenya.cms.migration.Migrate14">
<arg value="${build.webapp}"/>
<arg value="${repository.factory}"/>
</java>
</target>
</project>