You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by gb...@apache.org on 2010/06/16 15:08:21 UTC

svn commit: r955223 - /pivot/trunk/bxml_upgrade.xml

Author: gbrown
Date: Wed Jun 16 13:08:20 2010
New Revision: 955223

URL: http://svn.apache.org/viewvc?rev=955223&view=rev
Log:
Add WTKX to BXML migration script.

Added:
    pivot/trunk/bxml_upgrade.xml

Added: pivot/trunk/bxml_upgrade.xml
URL: http://svn.apache.org/viewvc/pivot/trunk/bxml_upgrade.xml?rev=955223&view=auto
==============================================================================
--- pivot/trunk/bxml_upgrade.xml (added)
+++ pivot/trunk/bxml_upgrade.xml Wed Jun 16 13:08:20 2010
@@ -0,0 +1,54 @@
+<?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="pivot" default="bxml_upgrade">
+    <property name="src" value="."/>
+
+    <target name="bxml_upgrade">
+        <!-- *.java -->
+        <replace dir="${src}" token="wtkxSerializer" value="beanSerializer">
+            <include name="**/*.java"/>
+        </replace>
+
+        <replace dir="${src}" token="WTKXSerializer" value="BeanSerializer">
+            <include name="**/*.java"/>
+        </replace>
+
+        <replace dir="${src}" token="@WTKX" value="@BXML">
+            <include name="**/*.java"/>
+        </replace>
+
+        <replace dir="${src}" token=".wtkx" value=".bxml">
+            <include name="**/*.java"/>
+        </replace>
+
+        <!-- *.wtkx -->
+        <replace dir="${src}" token="wtkx" value="bxml">
+            <include name="**/*.wtkx"/>
+        </replace>
+
+        <copy todir="${src}" overwrite="true">
+            <fileset dir="${src}"/>
+            <globmapper from="*.wtkx" to="*.bxml"/>
+        </copy>
+
+        <delete>
+            <fileset dir="${src}" includes="**/*.wtkx"/>
+        </delete>
+    </target>
+</project>