Commits

dloy committed 6564e8f Draft

bitbucket

  • Participants
  • Parent commits 790db4f

Comments (0)

Files changed (169)

node-war-uc3/pom.xml

+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.cdlib.mrt</groupId>
+  <artifactId>mrt-node</artifactId>
+  <packaging>war</packaging>
+  <version>1.0-SNAPSHOT</version>
+  <name>UC3-mrtNodeUC3</name>
+
+  <url>http://uc3.cdlib.org</url>
+
+
+  <!-- force UTF-8 -->
+  <properties>
+      <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+  </properties>
+
+    <profiles>
+      <profile>
+          <id>notUC3</id>
+          <activation>
+            <activeByDefault>true</activeByDefault>
+          </activation>
+          <properties>
+              <warLocation>war</warLocation>
+              <warName>mrt-node.war</warName>
+          </properties>
+      </profile>
+      <profile>
+          <id>nodeWar</id>
+          <properties>
+              <warLocation>${propertyDir}</warLocation>
+              <warName>mrt-node.${propertyDir}.war</warName>
+          </properties>
+      </profile>
+      <profile>
+          <id>uc3</id>
+          <properties>
+              <warLocation>${propertyDir}</warLocation>
+              <warName>mrt-node.${propertyDir}.war</warName>
+          </properties>
+      </profile>
+    </profiles>
+
+
+  <repositories>
+    <repository>
+      <id>my-internal-site</id>
+      <url>http://myserver/repo</url>
+    </repository>
+  </repositories>
+
+  <build>
+
+    <plugins>
+        <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-war-plugin</artifactId>
+            <version>2.1</version>
+            <configuration>
+                <finalName>node.${project.version}</finalName>
+
+            </configuration>
+        </plugin>
+        
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-dependency-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>copy</id>
+                        <phase>install</phase>
+
+                        <goals>
+                            <goal>copy</goal>
+                        </goals>
+                        <configuration>
+                            <artifactItems>
+                                <artifactItem>
+                                    <groupId>org.cdlib.mrt</groupId>
+                                    <artifactId>mrt-node</artifactId>
+
+                                    <version>1.0-SNAPSHOT</version>
+                                    <type>war</type>
+                                    <overWrite>true</overWrite>
+                                    <outputDirectory>./${warLocation}</outputDirectory>
+                                    <destFileName>${warName}</destFileName>
+                                </artifactItem>
+
+                            </artifactItems>
+
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+
+            <plugin>
+              <groupId>org.codehaus.mojo</groupId>
+              <artifactId>exec-maven-plugin</artifactId>
+              <version>1.1</version>
+              <executions>
+                <execution>
+                  <id>version</id>
+                  <phase>package</phase>
+                  <configuration>
+                    <executable>hg</executable>
+                    <arguments>
+                      <argument>id</argument>
+                    </arguments>
+                    <outputFile>${warLocation}/VERSION</outputFile>
+                  </configuration>
+                  <goals>
+                    <goal>exec</goal>
+                  </goals>
+                </execution>
+              </executions>
+            </plugin> 
+    </plugins>
+  </build>
+  <dependencies>
+
+        <dependency>
+            <groupId>com.sun.jersey</groupId>
+            <artifactId>jersey-bundle</artifactId>
+            <version>1.5</version>
+        </dependency>
+
+        <dependency>
+            <groupId>com.sun.jersey.contribs</groupId>
+            <artifactId>jersey-multipart</artifactId>
+            <version>1.5</version>
+        </dependency>
+
+        <dependency>
+            <groupId>org.cdlib.mrt</groupId>
+            <artifactId>mrt-storeconf</artifactId>
+            <version>1.0-SNAPSHOT</version>
+        </dependency>
+
+        <dependency>
+            <groupId>org.cdlib.mrt</groupId>
+            <artifactId>mrt-store</artifactId>
+            <version>1.0-SNAPSHOT</version>
+        </dependency>
+
+        <dependency>
+            <groupId>org.cdlib.mrt</groupId>
+            <artifactId>mrt-jena</artifactId>
+            <version>1.0-SNAPSHOT</version>
+        </dependency>
+
+        <dependency>
+            <groupId>asm</groupId>
+            <artifactId>asm</artifactId>
+            <version>3.1</version>
+        </dependency>
+
+        <dependency>
+            <groupId>javax.servlet</groupId>
+
+            <artifactId>servlet-api</artifactId>
+            <version>2.4</version>
+            <scope>provided</scope>
+        </dependency>
+</dependencies>
+</project>

node-war-uc3/src/main/webapp/WEB-INF/web.xml

+<?xml version="1.0" encoding="UTF-8"?>
+<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
+    http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
+    
+    <display-name>Jersey RESTful</display-name>
+    
+    <servlet>
+        <servlet-name>Jersey Web Application</servlet-name>
+        <servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class>
+        <init-param>
+            <param-name>com.sun.jersey.config.property.packages</param-name>
+            <param-value>org.cdlib.mrt.store.app.jersey.node</param-value>
+        </init-param>
+        <init-param>
+            <param-name>loggerProperties</param-name>
+            <param-value>resources/TStorageLogger.properties</param-value>
+        </init-param>
+        <init-param>
+            <param-name>serviceProperties</param-name>
+            <param-value>resources/TStorageNode.properties</param-value>
+        </init-param>
+        <init-param>
+            <param-name>localProperties</param-name>
+            <param-value>resources/TStorageNodeLocal.properties</param-value>
+        </init-param>
+        <init-param>
+            <param-name>com.sun.jersey.spi.container.ContainerRequestFilters</param-name>
+            <param-value>com.sun.jersey.api.container.filter.LoggingFilter</param-value>
+        </init-param>
+    </servlet>
+    
+
+    <servlet-mapping>
+        <servlet-name>Jersey Web Application</servlet-name>
+        <url-pattern>/*</url-pattern>
+    </servlet-mapping>
+    
+</web-app>

node-war-uc3/war/VERSION

+c87927e2b26d+ tip

node-war-uc3/war/mrt-node.war

Binary file added.
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.cdlib.mrt</groupId>
+  <artifactId>mrt-node</artifactId>
+  <packaging>war</packaging>
+  <version>1.0-SNAPSHOT</version>
+  <name>UC3-mrtNode</name>
+
+  <url>http://uc3.cdlib.org</url>
+
+
+  <!-- force UTF-8 -->
+  <properties>
+      <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+  </properties>
+
+
+  <repositories>
+    <repository>
+      <id>my-internal-site</id>
+      <url>http://myserver/repo</url>
+    </repository>
+  </repositories>
+
+  <build>
+
+    <plugins>
+        <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-dependency-plugin</artifactId>
+            <executions>
+                <execution>
+                    <id>unpack</id>
+
+                    <phase>compile</phase>
+                    <goals>
+                        <goal>unpack</goal>
+                    </goals>
+                    <configuration>
+                        <artifactItems>
+                            <artifactItem>
+                                <groupId>org.cdlib.mrt</groupId>
+
+                                <artifactId>mrt-storeconf</artifactId>
+                                <version>1.0-SNAPSHOT</version>
+                                <type>jar</type>
+                                <overWrite>true</overWrite>
+                                <includes>**/TStorageLogger.properties,**/TStorageNode.properties,**/SDSC-S3.properties</includes>
+                                <outputDirectory>${project.build.outputDirectory}</outputDirectory>
+
+                            </artifactItem>
+                        </artifactItems>
+                        <overWriteReleases>true</overWriteReleases>
+                        <overWriteSnapshots>true</overWriteSnapshots>
+                    </configuration>
+                </execution>
+         </executions>
+       </plugin>
+
+        <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-war-plugin</artifactId>
+            <version>2.1</version>
+            <configuration>
+                <finalName>node.${project.version}</finalName>
+
+            </configuration>
+        </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-dependency-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>copy</id>
+                        <phase>install</phase>
+
+                        <goals>
+                            <goal>copy</goal>
+                        </goals>
+                        <configuration>
+                            <artifactItems>
+                                <artifactItem>
+                                    <groupId>org.cdlib.mrt</groupId>
+                                    <artifactId>mrt-node</artifactId>
+
+                                    <version>1.0-SNAPSHOT</version>
+                                    <type>war</type>
+                                    <overWrite>true</overWrite>
+                                    <outputDirectory>./war</outputDirectory>
+                                    <destFileName>mrt-node.war</destFileName>
+                                </artifactItem>
+
+                            </artifactItems>
+
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+    </plugins>
+  </build>
+  <dependencies>
+
+        <dependency>
+            <groupId>com.sun.jersey</groupId>
+            <artifactId>jersey-bundle</artifactId>
+            <version>1.5</version>
+        </dependency>
+
+        <dependency>
+            <groupId>com.sun.jersey.contribs</groupId>
+            <artifactId>jersey-multipart</artifactId>
+            <version>1.5</version>
+        </dependency>
+
+        <dependency>
+            <groupId>org.cdlib.mrt</groupId>
+            <artifactId>mrt-storeconf</artifactId>
+            <version>1.0-SNAPSHOT</version>
+        </dependency>
+
+        <dependency>
+            <groupId>org.cdlib.mrt</groupId>
+            <artifactId>mrt-store</artifactId>
+            <version>1.0-SNAPSHOT</version>
+        </dependency>
+
+        <dependency>
+            <groupId>org.cdlib.mrt</groupId>
+            <artifactId>mrt-jena</artifactId>
+            <version>1.0-SNAPSHOT</version>
+        </dependency>
+
+        <dependency>
+            <groupId>asm</groupId>
+            <artifactId>asm</artifactId>
+            <version>3.1</version>
+        </dependency>
+
+        <dependency>
+            <groupId>javax.servlet</groupId>
+
+            <artifactId>servlet-api</artifactId>
+            <version>2.4</version>
+            <scope>provided</scope>
+        </dependency>
+</dependencies>
+</project>

node-war/src/main/webapp/WEB-INF/web.xml

+<?xml version="1.0" encoding="UTF-8"?>
+<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
+    http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
+    
+    <display-name>Jersey RESTful</display-name>
+    
+    <servlet>
+        <servlet-name>Jersey Web Application</servlet-name>
+        <servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class>
+        <init-param>
+            <param-name>com.sun.jersey.config.property.packages</param-name>
+            <param-value>org.cdlib.mrt.store.app.jersey.node</param-value>
+        </init-param>
+        <init-param>
+            <param-name>loggerProperties</param-name>
+            <param-value>resources/TStorageLogger.properties</param-value>
+        </init-param>
+        <init-param>
+            <param-name>serviceProperties</param-name>
+            <param-value>resources/TStorageNode.properties</param-value>
+        </init-param>
+        <init-param>
+            <param-name>localProperties</param-name>
+            <param-value>resources/TStorageNodeLocal.properties</param-value>
+        </init-param>
+        <init-param>
+            <param-name>com.sun.jersey.spi.container.ContainerRequestFilters</param-name>
+            <param-value>com.sun.jersey.api.container.filter.LoggingFilter</param-value>
+        </init-param>
+    </servlet>
+    
+
+    <servlet-mapping>
+        <servlet-name>Jersey Web Application</servlet-name>
+        <url-pattern>/*</url-pattern>
+    </servlet-mapping>
+    
+</web-app>

node-war/war/mrt-node.war

Binary file added.

store-conf-uc3/pom.xml

+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.cdlib.mrt</groupId>
+  <artifactId>mrt-storeconf</artifactId>
+  <version>1.0-SNAPSHOT</version>
+  <name>UC3-mrtStoreConf</name>
+  <packaging>jar</packaging>
+  <url>http://uc3.cdlib.org</url>
+
+  <!-- force UTF-8 -->
+  <properties>
+      <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+  </properties>
+
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-enforcer-plugin</artifactId>
+        <version>1.0</version>
+        <executions>
+          <execution>
+            <id>enforce-property</id>
+            <goals>
+              <goal>enforce</goal>
+            </goals>
+            <configuration>
+              <rules>
+                <requireProperty>
+                  <property>propertyDir</property>
+                  <message>You must specify an property file: mvn install -P UC3 -DpropertyDir=[within properties directory]</message>
+                </requireProperty>
+              </rules>
+              <fail>true</fail>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+
+    <resources>
+      <resource>
+        <directory>properties/${propertyDir}</directory>
+        <targetPath>resources</targetPath>
+      </resource>
+    </resources>
+  </build>
+</project>

store-conf/pom.xml

+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.cdlib.mrt</groupId>
+  <artifactId>mrt-storeconf</artifactId>
+  <version>1.0-SNAPSHOT</version>
+  <name>UC3-mrtStoreConf</name>
+  <packaging>jar</packaging>
+  <url>http://uc3.cdlib.org</url>
+
+  <!-- force UTF-8 -->
+  <properties>
+      <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+  </properties>
+
+  <build>
+    <plugins>
+        <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-antrun-plugin</artifactId>
+            <executions>
+                <execution>
+                    <phase>validate</phase>
+                    <configuration>
+                        <tasks>
+        <ant dir="." antfile="setconf.xml" target="setprop"/>
+                        </tasks>
+                    </configuration>
+                    <goals>
+                      <goal>run</goal>
+                    </goals>
+                </execution>
+            </executions>
+
+       </plugin>
+    </plugins>
+</build>
+</project>
+
+
+

store-conf/properties-save/SDSC-S3.properties

+#          SDSC cloud properties
+#-----------------------------------------------------------------
+
+#access_key=<user>
+access_key=user
+
+#secret_key=<password>
+secret_key=password
+
+#host=<cloud service>
+host=cloud.edu

store-conf/properties-save/TStorageLogger.properties

+#*********************************************************************
+#   Copyright 2009 Regents of the University of California
+#   All rights reserved   
+#********************************************************************/
+
+fileLogger.message.maximumLevel=10
+fileLogger.error.maximumLevel=10
+fileLogger.path=../logs/
+fileLogger.name=mrt
+fileLogger.qualifier=yyMMdd
+fileLogger.trace.maximumLevel=5
+

store-conf/properties-save/TStorageNode.properties

+#          Teak node definitions
+#-----------------------------------------------------------------
+#ServiceName=mstore1.cdlib.org
+#ServiceID=1
+#ServiceVersion=Store/1.0
+#ServiceCustomerSupport=me
+#NodeDefault=30
+#NodeService=C:/Documents and Settings/dloy/My Documents/MRTMaven/repository/fixity/node
+#Node.30=C:/Documents and Settings/dloy/My Documents/CDLTeak/data/node30
+#StorageService=C:/Documents and Settings/dloy/My Documents/CDLTeak/

store-conf/properties-save/TStorageStore.properties

+#          Storage service properties
+#-----------------------------------------------------------------
+
+#StorageService=<REQUIRED: directory of storage service repository>
+StorageService=C:/Documents and Settings/dloy/My Documents/MRTMaven/repository/mrt-test/store
+
+
+#mail.smtp.host=<async command - location of smtp mail server>
+mail.smtp.host=smtp.mail.edu
+
+#mail.from=<async command - generic from name for async command>
+mail.from=user@cdlib.org
+
+#baseEmailDir=<async command - location of async output content>
+baseEmailDir=/replic/loy/tomcat/webapps/async
+
+#async command - BCC.<n>=<n=sequentially increasing number for blind copies on async email>
+BCC.1=name@yahoo.com
+BCC.2=name@gmail.com
+
+#async command - errMsg=<Async error message>
+errMsg=***Unable to complete this requested action***\nCustomer service will be notified

store-conf/properties/TStorageLogger.properties

+#*********************************************************************
+#   Copyright 2009 Regents of the University of California
+#   All rights reserved   
+#********************************************************************/
+
+fileLogger.message.maximumLevel=10
+fileLogger.error.maximumLevel=10
+fileLogger.path=../logs/
+fileLogger.name=mrt
+fileLogger.qualifier=yyMMdd
+fileLogger.trace.maximumLevel=5
+

store-conf/properties/TStorageStore.properties

+#          Storage service properties
+#-----------------------------------------------------------------
+
+#mail.smtp.host=<async command - location of smtp mail server>
+mail.smtp.host=smtp.mail.edu
+
+#mail.from=<async command - generic from name for async command>
+mail.from=user@cdlib.org
+
+#baseEmailDir=<async command - location of async output content>
+baseEmailDir=/replic/loy/tomcat/webapps/async
+
+#async command - BCC.<n>=<n=sequentially increasing number for blind copies on async email>
+BCC.1=name@yahoo.com
+BCC.2=name@gmail.com
+
+#async command - errMsg=<Async error message>
+errMsg=***Unable to complete this requested action***\nCustomer service will be notified
+
+#StorageService=<REQUIRED: directory of storage service repository>
+StorageService=C:/Documents and Settings/dloy/My Documents/MRTMaven/repository/mrt-test/store

store-conf/setconf.properties

+
+# test
+testout=./testout
+testnode=${testout}/node
+teststore=${testout}/store
+
+# default storage properties
+store.info.name=UC3
+store.info.identifier=dp01.cdlib.org
+store.info.description=UC3 storage micro-service
+store.info.serviceScheme=Store/1.0
+store.info.supportURI=mailto:merritt-support@ucop.edu

store-conf/setconf.xml

+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Builds the CDL Framework --><!-- Assumes: Java source is at '../src' --><!-- Builds:  Java classes at '../classes' --><!-- Builds:  Jar at '../lib' --><!--  -->
+<project basedir="." default="setprop" name="buildstore">
+    <target name="-init">
+        <echo message="-init entered"/>
+        <delete dir="src"/>
+        <delete dir="resources"/>
+        <available file="../mrt.local.properties" property="local.present"/>
+        <property file="setconf.properties"/>
+    </target>
+
+    <target name="setprop" depends="-init">
+        <antcall target="setprop-found"/>
+        <antcall target="setprop-not-found"/>
+    </target>
+
+    <target name="setprop-found" if="local.present">
+        <property file="../mrt.local.properties"/>
+        <echo message="make-repository entered"/>
+        <echo message="storage.node=${storage.node}"/>
+        <echo message="can.node=${can.node}"/>
+        <echo message="can.info.identifier=${can.info.identifier}"/>
+        <echo message="store.info.baseURI=${store.info.baseURI}"/>
+        <copy todir="resources">
+            <fileset dir="properties"/>
+        </copy>
+        <echo message="StorageService=${storage.node}" file="resources/TStorageStore.properties"/>
+        <echo message="StorageService=${storage.node}" file="resources/TStorageCmd.properties"/>
+
+        <copy todir="src/main/resources/resources">
+            <fileset dir="resources"/>
+        </copy>
+    </target>
+
+    <target name="setprop-not-found" unless="local.present">
+        <copy todir="resources">
+            <fileset dir="properties"/>
+        </copy>
+
+        <copy todir="src/main/resources/resources">
+            <fileset dir="resources"/>
+        </copy>
+    </target>
+    
+</project>

store-demo/make-repository.properties

+
+# test
+testout=./testout
+testnode=${testout}/node
+teststore=${testout}/store
+
+# default storage properties
+store.info.name=UC3
+store.info.identifier=dp01.cdlib.org
+store.info.description=UC3 storage micro-service
+store.info.serviceScheme=Store/1.0
+store.info.supportURI=mailto:merritt-support@ucop.edu
+exists.can.node=keep
+exists.storage.node=keep

store-demo/make-repository.xml

+<?xml version="1.0" encoding="UTF-8"?>
    <target name="-init">
        <echo message="-init entered"/>
        <available file="../mrt.local.properties" property="local.present"/>
    </target>
    
    <target name="-initProp">
        <echo message="-initProp entered"/>
        <property file="make-repository.properties"/>
    </target>
    <target name="create" depends="-init">
        <antcall target="-if-repository"/>
    </target>
    <target name="-if-repository" if="local.present">
        <property file="../mrt.local.properties"/>
        <property file="make-repository.properties"/>
        <echo message="local.properties exists.storage.node=${exists.storage.node}"/>
        <echo message="local.properties exists.can.node=${exists.can.node}"/>
        <antcall target="handle-repository"/>
    </target>
    <target name="handle-repository"
        depends="-set-conditions, -delete-can, -delete-store, -test-available, -build-store, -build-can, -build-can-conf">
        <echo message="handle-repository entered"/>
    </target>
    <target name="-set-conditions">
        <echo message="exists.storage.node=${exists.storage.node}"/>
        <echo message="exists.can.node=${exists.can.node}"/>
        <condition property="delete.storage">
            <equals arg1="${exists.storage.node}" arg2="delete" />
        </condition>
        <condition property="delete.can">
            <equals arg1="${exists.can.node}" arg2="delete" />
        </condition>
        <echo message="delete.storage=${delete.storage}"/>
        <echo message="delete.can=${delete.can}"/>
    </target>
    <target name="-delete-can" if="delete.can">
        <echo message="delete-can entered"/>
        <delete dir="${can.node}"/>
    </target>
    <target name="-delete-store" if="delete.can">
        <echo message="delete-store entered"/>
        <delete dir="${storage.node}"/>
    </target>
    <target name="-test-available">
        <available file="${storage.node}" property="storage.present"/>
        <available file="${can.node}" property="can.present"/>
        <echo message="test-available entered"/>
        <echo message="storage.present=${storage.present}"/>
        <echo message="can.present=${can.present}"/>
    </target>
    <target name="-build-store" unless="storage.present">
        <echo message="build-store entered"/>
        <mkdir dir="${storage.node}"/>
        <copy todir="${storage.node}">
            <fileset dir="make/store"/>
        </copy>
        <echo file="${storage.node}/store-info.txt">serviceScheme: Store/1.0${line.separator}name: ${store.info.name}${line.separator}identifier: ${store.info.identifier}${line.separator}description: ${store.info.description}${line.separator}supportURI: ${store.info.supportURI}${line.separator}baseURI: ${store.info.baseURI}${line.separator}</echo>
        <echo file="${storage.node}/nodes.txt" message="${can.node}${line.separator}" />
    </target>
    <target name="-build-can" unless="can.present">
        <echo message="build-can entered"/>
        <mkdir dir="${can.node}"/>
        <copy todir="${can.node}">
            <fileset dir="make/node"/>
        </copy>
        <mkdir dir="${can.node}/log"/>
        <mkdir dir="${can.node}/store"/>
        <echo file="${can.node}/can-info.txt" message="identifier: ${can.info.identifier}${line.separator}" append="yes"/>
    </target>
    <target name="-build-can-conf">
        <echo message="-build-can-conf entered"/>
        <delete dir="../store-conf/properties"></delete>
        <mkdir dir="../store-conf/properties"></mkdir>
        <copy todir="../store-conf/properties">
            <fileset dir="make/store-properties"/>
        </copy>
        <echo file="../store-conf/properties/TStorageStore.properties" message="${line.separator}StorageService=${storage.node}" append="yes"/>
    </target>
    <target name="-make-testout" depends="-initProp">
        <echo message="-make-testout entered"/>
        <delete dir="${testout}"/>
        <mkdir dir="${testout}/out"/>
        <antcall target="-setup-cmdline"/>
    </target>
    <target name="test-cmdline-windows" depends="-initProp">
        <property file="../mrt.local.properties"/>
        <echo message="****test-cmdline-windows entered"/>
        <property name="cmdtest" value="${testout}/cmdline"/>
        <mkdir dir="${testout}/out"/>
        <delete file="${cmdtest}/cmds.bat"/>
        <copy file="make/cmdline/cmds.bat" todir="${cmdtest}"/>
        <copy file="storecmd.jar" todir="${cmdtest}"/>
        <replace file="${cmdtest}/cmds.bat" token="xxnodexx" value="${can.info.identifier}"/>
        <exec dir="${cmdtest}" executable="cmd.exe">
            <arg line="/K cmds.bat"/>
        </exec>
    </target>
    <target name="test-cmdline-node-windows" depends="-initProp">
        <property file="../mrt.local.properties"/>
        <property name="cmdtest" value="${testout}/cmdline"/>
        <delete file="${cmdtest}/cmds-node.bat"/>
        <copy file="make/cmdline/cmds-node.bat" todir="${cmdtest}"/>
        <replace file="${cmdtest}/cmds-node.bat" token="xxnodexx" value="${can.info.identifier}"/>
        <exec dir="${cmdtest}" executable="cmd.exe">
            <arg line="/K cmds-node.bat"/>
        </exec>
    </target>
    <target name="test-cmdline-unix" depends="-setup-cmdline">
        <property file="../mrt.local.properties"/>
        <property name="cmdtest" value="${testout}/cmdline"/>
        <delete file="${cmdtest}/storecmd.jar"/>
        <copy file="storecmd.jar" todir="${cmdtest}"/>
        <delete file="${cmdtest}/cmds.sh"/>
        <copy file="make/cmdline/cmds.sh" todir="${cmdtest}"/>
        <replace file="${cmdtest}/cmds.sh" token="xxnodexx" value="${can.info.identifier}"/>
        <copy file="make/cmdline/store" todir="${cmdtest}"/>
        <chmod file="${cmdtest}/cmds.sh" perm="a+x"/>
        <chmod file="${cmdtest}/store" perm="a+x"/>
        <exec dir="${cmdtest}" executable="./cmds.sh"></exec>
    </target>
    <target name="-setup-cmdline" depends="-initProp">
        <property name="cmdtest" value="${testout}/cmdline"/>
        <mkdir dir="${cmdtest}"/>
    </target>