diff src/main/resources/build.xml @ 4:8ce07918ec8a

(none)
author jurzua
date Wed, 29 Oct 2014 13:30:55 +0000
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/main/resources/build.xml	Wed Oct 29 13:30:55 2014 +0000
@@ -0,0 +1,118 @@
+<project name="Script" default="print" basedir="../">
+
+	<path id="om.classpath">
+		<fileset dir="${basedir}/lib">
+			<include name="*.jar" />
+		</fileset>
+	</path>
+	
+
+	<target name="ShowRepositoryName">
+		<java classname="org.mpi.openmind.scripts.ShowRepositoryName" maxmemory="512m" fork="true" failonerror="true">
+			<arg value="" />
+			<classpath>
+				<pathelement path="${basedir}/classes" />
+				<path refid="om.classpath" />
+			</classpath>
+		</java>
+	</target>
+	
+    <target name="RepositoryName">
+        <java classname="org.mpi.openmind.scripts.RepositoryName" maxmemory="512m" fork="true" failonerror="true">
+            <arg value="" />
+            <classpath>
+                <pathelement path="${basedir}/classes" />
+                <path refid="om.classpath" />
+            </classpath>
+        </java>
+    </target>	
+	
+    <target name="NormalizeOWEntities">
+        <java classname="org.mpi.openmind.scripts.NormalizeOW" maxmemory="1024m" fork="true" failonerror="true">
+            <arg value="ENTITY" />
+            <classpath>
+                <pathelement path="${basedir}/classes" />
+                <path refid="om.classpath" />
+            </classpath>
+        </java>
+    </target> 
+	
+    <target name="NormalizeOWAttributes">
+        <java classname="org.mpi.openmind.scripts.NormalizeOW" maxmemory="1024m" fork="true" failonerror="true">
+            <arg value="ATTRIBUTE" />
+            <classpath>
+                <pathelement path="${basedir}/classes" />
+                <path refid="om.classpath" />
+            </classpath>
+        </java>
+    </target>  	
+	
+    <target name="DoubleRelationsShow">
+        <java classname="org.mpi.openmind.scripts.DoubleRelations" maxmemory="1024m" fork="true" failonerror="true">
+            <arg value="SHOW" />
+            <classpath>
+                <pathelement path="${basedir}/classes" />
+                <path refid="om.classpath" />
+            </classpath>
+        </java>
+    </target>  	
+	
+    <target name="DoubleRelationsReduce">
+        <java classname="org.mpi.openmind.scripts.DoubleRelations" maxmemory="1024m" fork="true" failonerror="true">
+            <arg value="REDUCE" />
+            <classpath>
+                <pathelement path="${basedir}/classes" />
+                <path refid="om.classpath" />
+            </classpath>
+        </java>
+    </target> 	
+	
+    <target name="GenerateWitnessOwnValue">
+        <java classname="org.mpi.openmind.scripts.WitnessOwnValueGenerator" maxmemory="1024m" fork="true" failonerror="true">
+            <arg value="" />
+            <classpath>
+                <pathelement path="${basedir}/classes" />
+                <path refid="om.classpath" />
+            </classpath>
+        </java>
+    </target> 
+	
+    <target name="RoleToRelation">
+        <java classname="org.mpi.openmind.scripts.RoleToRelation" maxmemory="1024m" fork="true" failonerror="true">
+            <arg value="${filePath}" />
+            <classpath>
+                <pathelement path="${basedir}/classes" />
+                <path refid="om.classpath" />
+            </classpath>
+        </java>
+    </target> 	
+	
+	<target name="CurrentVersionForRelations">
+	        <java classname="org.mpi.openmind.scripts.CurrentVersionForRelations" maxmemory="1024m" fork="true" failonerror="true">
+	            <arg value="${filePath}" />
+	            <classpath>
+	                <pathelement path="${basedir}/classes" />
+	                <path refid="om.classpath" />
+	            </classpath>
+	        </java>
+	</target>
+	
+	<target name="print">
+		<echo>
+			### SCRIPTS COMMANDS ###
+			    
+			    *** commands list ***
+			    ShowRepositoryName: show the amount of Repositories without name attribute.	  
+			    RepositoryName: create an attribute name for all repositories without one.
+			    NormalizeOWEntities: generate the normalizedOW for the entities marked as CURRENT_VERSION.
+			    NormalizeOWAttributes: generate the normalizedOW for the attributes marked as CURRENT_VERSION.
+		        DoubleRelationsShow
+			    DoubleRelationsReduce
+		    	GenerateWitnessOwnValue
+			    CurrentVersionForRelations
+			    RoleToRelation use -DfilePath to set location of the definition's file.
+			    
+		</echo>
+	</target>
+	
+</project>