1 28 29 36 package org.objectweb.ecm.taskdefs; 37 38 44 public class IR3TaskHelper 45 { 46 50 static public org.apache.tools.ant.types.Environment.Variable[] 51 buildEnv(org.apache.tools.ant.Project project) 52 { 53 return buildEnv(project, FileHelper.createTempDir()); 54 } 55 56 static public org.apache.tools.ant.types.Environment.Variable[] 57 buildEnv(org.apache.tools.ant.Project project, 58 java.io.File cfgdir) 59 { 60 62 67 OSHelper.pathConvert(project, "os.OpenCCM.install.dir", "OpenCCM.install.dir"); 69 String homedir = project.getProperty("os.OpenCCM.install.dir"); 70 71 73 86 87 org.apache.tools.ant.types.Environment.Variable[] env = new org.apache.tools.ant.types.Environment.Variable[2]; 89 env[0] = new org.apache.tools.ant.types.Environment.Variable(); 90 env[0].setKey("OpenCCM_HOMEDIR"); 91 env[0].setValue(homedir); 92 93 env[1] = new org.apache.tools.ant.types.Environment.Variable(); 94 env[1].setKey("OpenCCM_CONFIG_DIR"); 95 env[1].setValue(cfgdir.getPath()); 96 97 102 103 107 return env; 108 } 109 } 110 | Popular Tags |