You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@labs.apache.org by th...@apache.org on 2008/10/02 00:44:09 UTC

svn commit: r700964 - in /labs/droids/branch/LABS-144: build.xml targets/plugins.xml

Author: thorsten
Date: Wed Oct  1 15:44:08 2008
New Revision: 700964

URL: http://svn.apache.org/viewvc?rev=700964&view=rev
Log:
LABS-189
adding basic support for plugin seeds.

Added:
    labs/droids/branch/LABS-144/targets/plugins.xml   (with props)
Modified:
    labs/droids/branch/LABS-144/build.xml

Modified: labs/droids/branch/LABS-144/build.xml
URL: http://svn.apache.org/viewvc/labs/droids/branch/LABS-144/build.xml?rev=700964&r1=700963&r2=700964&view=diff
==============================================================================
--- labs/droids/branch/LABS-144/build.xml (original)
+++ labs/droids/branch/LABS-144/build.xml Wed Oct  1 15:44:08 2008
@@ -29,6 +29,9 @@
   <!-- Junit testing -->
   <import file="targets/common-testing.xml"/>
   
+  <!-- Plugin support -->
+  <import file="targets/plugins.xml"/>
+  
   <!-- the normal classpath -->
   <path id="droids.classpath">
     <pathelement location="${build.classes}"/>

Added: labs/droids/branch/LABS-144/targets/plugins.xml
URL: http://svn.apache.org/viewvc/labs/droids/branch/LABS-144/targets/plugins.xml?rev=700964&view=auto
==============================================================================
--- labs/droids/branch/LABS-144/targets/plugins.xml (added)
+++ labs/droids/branch/LABS-144/targets/plugins.xml Wed Oct  1 15:44:08 2008
@@ -0,0 +1,40 @@
+<?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.
+-->
+<project basedir="." name="plugins">
+  <property name="plugin.src.dir"             value="src"/>
+  <property name="droids.plugins.template.dir"       location="${droids.home}/src/pluginTemplate"/>
+  
+  <target name="seedPlugin"
+    description="Create a new plugin directory in the current working directory and seed it with initial set of files">
+    <input message="What is the name of the plugin you wish to create?"
+           addproperty="plugin-name"/>
+    <input message="Provide a brief description of what the plugin does"
+           addproperty="plugin-desc"/>
+    <mkdir dir="${plugin-name}"/>
+    <mkdir dir="${plugin-name}/${plugin.src.dir}"/>
+    <copy todir="${plugin-name}"
+          filtering="true">
+      <fileset dir="${droids.plugins.template.dir}"/>
+      <filterset>
+        <filter token="droids-version" value="${version}"/>
+        <filter token="plugin-name" value="${plugin-name}"/>
+        <filter token="plugin-desc" value="${plugin-desc}"/>
+      </filterset>
+    </copy>
+  </target>
+</project>
\ No newline at end of file

Propchange: labs/droids/branch/LABS-144/targets/plugins.xml
------------------------------------------------------------------------------
    svn:eol-style = native



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@labs.apache.org
For additional commands, e-mail: commits-help@labs.apache.org