Commits

Zemian Deng committed 2f98d16 Merge

Merged clean up code.

  • Participants
  • Parent commits 1899ac0, 8c9709b

Comments (0)

Files changed (2)

File timemachine-hibernate/config/scripting-scheduler.properties

+# Use configure scripting service that take -Dscript parameter as input to run
 timemachine.scheduler.userservice.scriptingService.class = timemachine.scheduler.userservice.ScriptingService
 ScriptingService.scriptEngineName = Groovy
 ScriptingService.initScript = ${script}
 
-timemachine.scheduler.schedulerName = TimeMachineScheduler
-timemachine.scheduler.nodeName = Node1
-
-# Use MySQL for scheduler as data store
+# Configure a dataStore service you want the script to operate on.
 timemachine.scheduler.dataStore.class = timemachine.scheduler.hibernate.HibernateDataStore
-timemachine.scheduler.dataStore.hibernateDataStore.hibernate.hbm2ddl.auto = update
-
 timemachine.scheduler.dataStore.hibernateDataStore.hibernate.connection.driver_class = com.mysql.jdbc.Driver
 timemachine.scheduler.dataStore.hibernateDataStore.hibernate.connection.url = jdbc:mysql://localhost:3306/tmscheduler
 timemachine.scheduler.dataStore.hibernateDataStore.hibernate.connection.username = admin

File timemachine-hibernate/pom.xml

 				</dependency>
 			</dependencies>
 		</profile>
+		<!-- For testing purpose, we will add groovy profile -->
+		<profile>
+			<id>groovy</id>
+			<dependencies>
+				<dependency>
+					<groupId>org.codehaus.groovy</groupId>
+					<artifactId>groovy-jsr223</artifactId>
+					<version>2.0.0</version>
+				</dependency>
+			</dependencies>
+		</profile>
 	</profiles>
 </project>