ace-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r939481 - in /incubator/ace/trunk/ace-repository-task: pom.xml src/main/java/org/apache/ace/repository/task/Activator.java
Date Thu, 29 Apr 2010 20:49:58 GMT
Author: marrs
Date: Thu Apr 29 20:49:58 2010
New Revision: 939481

URL: http://svn.apache.org/viewvc?rev=939481&view=rev
Log:
Task uses scheduler constants now.

Modified:
    incubator/ace/trunk/ace-repository-task/pom.xml
    incubator/ace/trunk/ace-repository-task/src/main/java/org/apache/ace/repository/task/Activator.java

Modified: incubator/ace/trunk/ace-repository-task/pom.xml
URL: http://svn.apache.org/viewvc/incubator/ace/trunk/ace-repository-task/pom.xml?rev=939481&r1=939480&r2=939481&view=diff
==============================================================================
--- incubator/ace/trunk/ace-repository-task/pom.xml (original)
+++ incubator/ace/trunk/ace-repository-task/pom.xml Thu Apr 29 20:49:58 2010
@@ -60,7 +60,11 @@
             <artifactId>ace-discovery-api</artifactId>
             <version>${project.version}</version>
         </dependency>
-
+        <dependency>
+            <groupId>${project.groupId}</groupId>
+            <artifactId>ace-scheduler-api</artifactId>
+            <version>${project.version}</version>
+        </dependency>
         <dependency>
             <groupId>org.osgi</groupId>
             <artifactId>org.osgi.core</artifactId>
@@ -77,7 +81,5 @@
             <groupId>javax.servlet</groupId>
             <artifactId>servlet-api</artifactId>
         </dependency>
-
     </dependencies>
-
 </project>
\ No newline at end of file

Modified: incubator/ace/trunk/ace-repository-task/src/main/java/org/apache/ace/repository/task/Activator.java
URL: http://svn.apache.org/viewvc/incubator/ace/trunk/ace-repository-task/src/main/java/org/apache/ace/repository/task/Activator.java?rev=939481&r1=939480&r2=939481&view=diff
==============================================================================
--- incubator/ace/trunk/ace-repository-task/src/main/java/org/apache/ace/repository/task/Activator.java
(original)
+++ incubator/ace/trunk/ace-repository-task/src/main/java/org/apache/ace/repository/task/Activator.java
Thu Apr 29 20:49:58 2010
@@ -21,6 +21,7 @@ package org.apache.ace.repository.task;
 import java.util.Properties;
 
 import org.apache.ace.discovery.Discovery;
+import org.apache.ace.scheduler.constants.SchedulerConstants;
 import org.apache.felix.dm.DependencyActivatorBase;
 import org.apache.felix.dm.DependencyManager;
 import org.osgi.framework.BundleContext;
@@ -30,9 +31,8 @@ public class Activator extends Dependenc
     @Override
     public void init(BundleContext context, DependencyManager manager) throws Exception {
         Properties props = new Properties();
-        // TODO we need to fix these property constants
-        props.put("taskName", RepositoryReplicationTask.class.getName());
-        props.put("description", "Synchronizes repositories.");
+        props.put(SchedulerConstants.SCHEDULER_NAME_KEY, RepositoryReplicationTask.class.getName());
+        props.put(SchedulerConstants.SCHEDULER_DESCRIPTION_KEY, "Synchronizes repositories.");
         manager.add(createService()
             .setInterface(Runnable.class.getName(), props)
             .setImplementation(RepositoryReplicationTask.class)



Mime
View raw message