Changeset 7932 for mauRepo/newmoon
- Timestamp:
- 05/07/11 17:05:59 (10 years ago)
- Location:
- mauRepo/newmoon
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
mauRepo/newmoon/pom.xml
r7882 r7932 4 4 <groupId>ndg.services.newmoon</groupId> 5 5 <artifactId>core</artifactId> 6 <version>1. 0.0</version>6 <version>1.1.0</version> 7 7 8 8 <organization> -
mauRepo/newmoon/src/main/java/ndg/services/newmoon/DBManager.java
r7882 r7932 153 153 * (providing that collection does not already exist. 154 154 * 155 * @param collection Name155 * @param collection 156 156 * the name of the collection to create. 157 157 * … … 340 340 * the parent Collection. If <code>null</code> the root 341 341 * collection, that is the collection having path 342 * {@link #ROOT_COLLECTION_PATH}, is used.342 * {@link NewmoonManager.NM_PARAM#ROOT_COLLECTION_PATH}, is used. 343 343 * @param the 344 344 * path relative to the parent's path -
mauRepo/newmoon/src/main/java/ndg/services/newmoon/NewmoonManager.java
r7848 r7932 100 100 "EncodeReport"), DEFAULT_CONFORMANCE_REPORT_NAME("ConformanceTestReport"), CONFORMANCE_TEST_DIR( 101 101 "conformanceDir"), ENCODE_DIR("encodeDir"), RESOURCE_NAME("defaultResourceName"), OUTPUT_DIR( 102 "exportDir") ;102 "exportDir"), EXECUTION_DIR("execution-directory"); 103 103 104 104 private final String name; … … 294 294 String xqueryDir, File outputDir) { 295 295 InputStream ret = null; 296 if (xqueryDir == null) { 297 return null; 298 } 296 299 try { 297 300 String moduleCollectionName = collectionName.getCollectionName() + "/" + FilenameUtils.getName(xqueryDir); … … 390 393 File tmpFile = null; 391 394 try { 392 tmpFile = new File(exportDir, "encoded-" +item);395 tmpFile = new File(exportDir, item); 393 396 writer = new FileWriter(tmpFile); 394 397 writer.write("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"); -
mauRepo/newmoon/src/main/java/ndg/services/newmoon/XMIEncoder.java
r7882 r7932 51 51 52 52 //Prepare the outputDir 53 File outputDir = new File(nm.getVariables(NM_PARAM. WORKING_DIRECTORY), nm.getVariables(NM_PARAM.OUTPUT_DIR));53 File outputDir = new File(nm.getVariables(NM_PARAM.EXECUTION_DIR), nm.getVariables(NM_PARAM.OUTPUT_DIR)); 54 54 outputDir.mkdir(); 55 55 outputdirPath = outputDir.getPath(); … … 59 59 nm.getVariables(NM_PARAM.ROOT_COLLECTION_URI)); 60 60 61 File xmiDoc = new File(nm.getVariables(NM_PARAM. WORKING_DIRECTORY), nm.getVariables(NM_PARAM.XMI_DOC));61 File xmiDoc = new File(nm.getVariables(NM_PARAM.EXECUTION_DIR), nm.getVariables(NM_PARAM.XMI_DOC)); 62 62 63 63 String resourceName = nm.getVariables(NM_PARAM.RESOURCE_NAME); … … 92 92 nm.getVariables(NM_PARAM.ENCODE_DIR), outputDir); 93 93 94 DBManager.getInstance().mapDBCollection(null); 94 95 nm.exportGeneratedResource(MODULE_NAME.SCHEMA_ENCODING.getModuleName() + "/" + schemaEncoding + "/working", outputDir); 95 96 }
Note: See TracChangeset
for help on using the changeset viewer.