[Yanel-commits] rev 22502 - in public/yanel/trunk/src/build: .
targets
michi at wyona.com
michi at wyona.com
Wed Feb 7 11:47:34 CET 2007
Author: michi
Date: 2007-02-07 11:47:33 +0100 (Wed, 07 Feb 2007)
New Revision: 22502
Added:
public/yanel/trunk/src/build/targets/create-new-resource-type.xml
Removed:
public/yanel/trunk/src/build/targets/create-new-resource.xml
Modified:
public/yanel/trunk/src/build/build.xml
Log:
renamed
Modified: public/yanel/trunk/src/build/build.xml
===================================================================
--- public/yanel/trunk/src/build/build.xml 2007-02-07 10:45:15 UTC (rev 22501)
+++ public/yanel/trunk/src/build/build.xml 2007-02-07 10:47:33 UTC (rev 22502)
@@ -18,7 +18,7 @@
<import file="continuous-integration.xml"/>
<import file="targets/install-tomcat.xml"/>
<import file="targets/add-third-party-realm.xml"/>
- <import file="targets/create-new-resource.xml"/>
+ <import file="targets/create-new-resource-type.xml"/>
<import file="targets/build-binary-snapshot.xml"/>
<import file="targets/execute-jmeter.xml"/>
Copied: public/yanel/trunk/src/build/targets/create-new-resource-type.xml (from rev 22501, public/yanel/trunk/src/build/targets/create-new-resource.xml)
Deleted: public/yanel/trunk/src/build/targets/create-new-resource.xml
===================================================================
--- public/yanel/trunk/src/build/targets/create-new-resource.xml 2007-02-07 10:45:15 UTC (rev 22501)
+++ public/yanel/trunk/src/build/targets/create-new-resource.xml 2007-02-07 10:47:33 UTC (rev 22502)
@@ -1,55 +0,0 @@
-<?xml version="1.0"?>
-
-<project name="create-new-resource-type" default="new-resource-type">
- <description>Create new resource-type</description>
-
- <target name="new-resource-type" description="Create a new resource-type" depends="init">
- <echo>Create new resource-type from scratch ${yanel.home.dir}/src/resources/from-scratch-resource-template</echo>
-
-
- <input message="Please enter the resource-type name (e.g. calendar):" defaultvalue="null" addproperty="new.resource.name"/>
- <input message="Please enter the namespace of this new resource-type (e.g. http://foo.bar/yanel/resource/1.0):" defaultvalue="null" addproperty="new.resource.namespace"/>
- <input message="Please enter a short description of this resource-type:" defaultvalue="null" addproperty="new.resource.description"/>
- <input message="Please enter java package of this resource-type (e.g. org.wyona.yanel.impl.resources):" defaultvalue="null" addproperty="new.resource.java.class.package"/>
- <input message="Please enter java class name of this resource-type (e.g. CalendarResource):" defaultvalue="null" addproperty="new.resource.java.class.name"/>
-
- <!-- TODO: Generate this path from package and class name! -->
- <input message="Please enter java class filesystem path of this resource-type (e.g. org/wyona/yanel/impl/resources/CalendarResource.java):" defaultvalue="null" addproperty="new.resource.java.class.fs.path"/>
-
- <property name="new.resource.java.class.location" location="${yanel.home.dir}/src/contributions/resources/${new.resource.name}/src/java/${new.resource.java.class.fs.path}"/>
- <property name="new.resource.java.class" value="${new.resource.java.class.package}.${new.resource.java.class.name}"/>
-
-
- <copy todir="${yanel.home.dir}/src/contributions/resources/${new.resource.name}">
- <fileset dir="${yanel.home.dir}/src/resources/from-scratch-resource-template" excludes="build/**,src/java/**"/>
- </copy>
-
- <!-- Patch resource.xml -->
- <replace file="${yanel.home.dir}/src/contributions/resources/${new.resource.name}/resource.xml" value="${new.resource.name}">
- <replacetoken>from-scratch</replacetoken>
- </replace>
- <replace file="${yanel.home.dir}/src/contributions/resources/${new.resource.name}/resource.xml" value="${new.resource.namespace}">
- <replacetoken>http://foo.bar/yanel/resource/1.0</replacetoken>
- </replace>
- <replace file="${yanel.home.dir}/src/contributions/resources/${new.resource.name}/resource.xml" value="${new.resource.description}">
- <replacetoken>From Scratch Resource Template</replacetoken>
- </replace>
- <replace file="${yanel.home.dir}/src/contributions/resources/${new.resource.name}/resource.xml" value="${new.resource.java.class}">
- <replacetoken>bar.foo.yanel.impl.resources.FromScratchResource</replacetoken>
- </replace>
-
- <!-- Patch build.properties -->
- <replace file="${yanel.home.dir}/src/contributions/resources/${new.resource.name}/src/build/build.properties" value="${new.resource.name}">
- <replacetoken>from-scratch</replacetoken>
- </replace>
-
- <echo>${new.resource.java.class}</echo>
- <copy file="${yanel.home.dir}/src/resources/from-scratch-resource-template/src/java/bar/foo/yanel/impl/resources/FromScratchResource.java" tofile="${new.resource.java.class.location}"/>
- <replace file="${new.resource.java.class.location}" value="${new.resource.java.class.name}">
- <replacetoken>FromScratchResource</replacetoken>
- </replace>
- <replace file="${new.resource.java.class.location}" value="${new.resource.java.class.package}">
- <replacetoken>bar.foo.yanel.impl.resources</replacetoken>
- </replace>
- </target>
-</project>
More information about the Yanel-commits
mailing list