[Yanel-commits] rev 57567 - in public/yanel/trunk/src/build: java/org/wyona/yanel/ant targets

ioannis at wyona.com ioannis at wyona.com
Tue Mar 29 16:20:40 CEST 2011


Author: ioannis
Date: 2011-03-29 16:20:39 +0200 (Tue, 29 Mar 2011)
New Revision: 57567

Modified:
   public/yanel/trunk/src/build/java/org/wyona/yanel/ant/AddRealmTask.java
   public/yanel/trunk/src/build/targets/add-third-party-realm.xml
Log:
Added 3 new command parameters, work in progress

Modified: public/yanel/trunk/src/build/java/org/wyona/yanel/ant/AddRealmTask.java
===================================================================
--- public/yanel/trunk/src/build/java/org/wyona/yanel/ant/AddRealmTask.java	2011-03-29 13:21:27 UTC (rev 57566)
+++ public/yanel/trunk/src/build/java/org/wyona/yanel/ant/AddRealmTask.java	2011-03-29 14:20:39 UTC (rev 57567)
@@ -13,6 +13,8 @@
 public class AddRealmTask extends Task {
 
     private Path newRealmConfig;
+    private Path newRealmMountPoint;
+    private Path newRealmId;
 
     /**
      *
@@ -20,6 +22,8 @@
     public void execute() throws BuildException {
         log("Not implemented yet!");
         log("New (third party) realm configuration: " + newRealmConfig);
+        log("New (third party) realm mount point: " + newRealmMountPoint);
+        log("New (third party) realm id: " + newRealmId);
         //RealmManager rm = new RealmManager();
     }
 
@@ -29,4 +33,22 @@
     public void setNewRealmConfig(Path newRealmConfig) {
         this.newRealmConfig = newRealmConfig;
     }
+    
+    /**
+     * Ant file task attribute new (third party) realm mount point
+     */
+    public void setNewRealmMountPoint(Path newRealmMountPoint) {
+        this.newRealmMountPoint = newRealmMountPoint;
+    }
+    
+    /**
+     * Ant file task attribute new (third party) realm id
+     */
+    public void setNewRealmId(Path newRealmId) {
+        this.newRealmId = newRealmId;
+    }
+  
 }
+
+
+// TODO in the execude methods check whethere or not the directory exists
\ No newline at end of file

Modified: public/yanel/trunk/src/build/targets/add-third-party-realm.xml
===================================================================
--- public/yanel/trunk/src/build/targets/add-third-party-realm.xml	2011-03-29 13:21:27 UTC (rev 57566)
+++ public/yanel/trunk/src/build/targets/add-third-party-realm.xml	2011-03-29 14:20:39 UTC (rev 57567)
@@ -8,7 +8,8 @@
 
     <taskdef name="addrealm" classpath="${yanel.source.home}/build/classes" classname="org.wyona.yanel.ant.AddRealmTask"/>
 
-    <addrealm newrealmconfig="${realm-config}"/>
+    <addrealm newrealmconfig="${realm-config}" newrealmmountpoint="${realm-mount-point}" newrealmid="${realm-id}"/>
+  	 	
   </target>
 
   <target name="build-add-realm-task" depends="init, compile-core">



More information about the Yanel-commits mailing list