ace-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1572516 - in /ace/trunk: org.apache.ace.client.workspace/src/org/apache/ace/client/workspace/ org.apache.ace.client.workspace/src/org/apache/ace/client/workspace/impl/ run-server-allinone/scripts/
Date Thu, 27 Feb 2014 11:14:59 GMT
Author: marrs
Date: Thu Feb 27 11:14:59 2014
New Revision: 1572516

URL: http://svn.apache.org/r1572516
Log:
Added support for listing, removing and adding resource processors.

Modified:
    ace/trunk/org.apache.ace.client.workspace/src/org/apache/ace/client/workspace/Workspace.java
    ace/trunk/org.apache.ace.client.workspace/src/org/apache/ace/client/workspace/impl/WorkspaceImpl.java
    ace/trunk/run-server-allinone/scripts/addtargets.gogo
    ace/trunk/run-server-allinone/scripts/clear.gogo
    ace/trunk/run-server-allinone/scripts/setup.gogo

Modified: ace/trunk/org.apache.ace.client.workspace/src/org/apache/ace/client/workspace/Workspace.java
URL: http://svn.apache.org/viewvc/ace/trunk/org.apache.ace.client.workspace/src/org/apache/ace/client/workspace/Workspace.java?rev=1572516&r1=1572515&r2=1572516&view=diff
==============================================================================
--- ace/trunk/org.apache.ace.client.workspace/src/org/apache/ace/client/workspace/Workspace.java
(original)
+++ ace/trunk/org.apache.ace.client.workspace/src/org/apache/ace/client/workspace/Workspace.java
Thu Feb 27 11:14:59 2014
@@ -220,6 +220,8 @@ public interface Workspace {
 
     public List<ArtifactObject> la(String filter) throws Exception;
 
+    public List<ArtifactObject> lr();
+
     /**
      * Creates and optionally uploads an artifact from a given URL.
      * <p>

Modified: ace/trunk/org.apache.ace.client.workspace/src/org/apache/ace/client/workspace/impl/WorkspaceImpl.java
URL: http://svn.apache.org/viewvc/ace/trunk/org.apache.ace.client.workspace/src/org/apache/ace/client/workspace/impl/WorkspaceImpl.java?rev=1572516&r1=1572515&r2=1572516&view=diff
==============================================================================
--- ace/trunk/org.apache.ace.client.workspace/src/org/apache/ace/client/workspace/impl/WorkspaceImpl.java
(original)
+++ ace/trunk/org.apache.ace.client.workspace/src/org/apache/ace/client/workspace/impl/WorkspaceImpl.java
Thu Feb 27 11:14:59 2014
@@ -476,6 +476,10 @@ public class WorkspaceImpl implements Wo
     public List<ArtifactObject> la() {
         return getGenericRepositoryObjects(ARTIFACT);
     }
+    
+    public List<ArtifactObject> lr() {
+        return m_artifactRepository.getResourceProcessors();
+    }
 
     @Override
     public List<ArtifactObject> la(String filter) throws Exception {

Modified: ace/trunk/run-server-allinone/scripts/addtargets.gogo
URL: http://svn.apache.org/viewvc/ace/trunk/run-server-allinone/scripts/addtargets.gogo?rev=1572516&r1=1572515&r2=1572516&view=diff
==============================================================================
--- ace/trunk/run-server-allinone/scripts/addtargets.gogo (original)
+++ ace/trunk/run-server-allinone/scripts/addtargets.gogo Thu Feb 27 11:14:59 2014
@@ -10,10 +10,13 @@ start 'file:'$pwd'/../org.apache.ace.tes
 # create a workspace
 w = (cw)
 
+# use timestamp as unique value
+t = (currentTimeMillis
+
 # create targets
 each [0 1 2 3 4 5 6 7 8 9] {
-	$w cd2t '(name=dist-'$it')' '(id=target-extra-'$it')'
-	$w ct [id='target-extra-'$it] [prop01=test prop02=another prop03=value]
+	$w cd2t '(name=dist-'$it')' '(id=target-extra-'$t$it')'
+	$w ct [id='target-extra-'$t$it] [prop01=test prop02=another prop03=value]
 }
 
 # commit and delete the workspace

Modified: ace/trunk/run-server-allinone/scripts/clear.gogo
URL: http://svn.apache.org/viewvc/ace/trunk/run-server-allinone/scripts/clear.gogo?rev=1572516&r1=1572515&r2=1572516&view=diff
==============================================================================
--- ace/trunk/run-server-allinone/scripts/clear.gogo (original)
+++ ace/trunk/run-server-allinone/scripts/clear.gogo Thu Feb 27 11:14:59 2014
@@ -13,6 +13,7 @@ w = (cw)
 
 # delete contents of workspace
 each ($w la) {$w da $it}
+each ($w lr) {$w da $it}
 each ($w lf) {$w df $it}
 each ($w ld) {$w dd $it}
 each ($w lt) {$w dt $it}

Modified: ace/trunk/run-server-allinone/scripts/setup.gogo
URL: http://svn.apache.org/viewvc/ace/trunk/run-server-allinone/scripts/setup.gogo?rev=1572516&r1=1572515&r2=1572516&view=diff
==============================================================================
--- ace/trunk/run-server-allinone/scripts/setup.gogo (original)
+++ ace/trunk/run-server-allinone/scripts/setup.gogo Thu Feb 27 11:14:59 2014
@@ -9,6 +9,9 @@ start 'file:'$pwd'/../org.apache.ace.tes
 # create a workspace
 w = (cw)
 
+# upload resource processor
+$w ca 'file:'$pwd'/../cnf/localrepo/org.apache.felix.deployment.rp.autoconf/org.apache.felix.deployment.rp.autoconf-0.1.5.jar'
true
+
 # create 10 features, distributions and targets...
 each [0 1 2 3 4 5 6 7 8 9] {
 	a = $it



Mime
View raw message