diff --git a/packages/ext-movetolatest/upgradeTemplates/extjs/build.xml b/packages/ext-movetolatest/upgradeTemplates/extjs/build.xml index 85c2c82..d1934bb 100644 --- a/packages/ext-movetolatest/upgradeTemplates/extjs/build.xml +++ b/packages/ext-movetolatest/upgradeTemplates/extjs/build.xml @@ -1,83 +1,80 @@ - + + + + + + + + + + + + -1) { + headerFound = true; + } + else if (headerFound && !cmdDir) { + cmdDir = line; + project.setProperty("cmd.dir", cmdDir); + } + } + process.waitFor(); + return !!cmdDir; + } + if (!exec(["sencha", "which"])) { + var tmpFile = "tmp.sh"; + echo("source ~/.bash_profile; sencha " + whichArgs.join(" "), tmpFile); + exec(["/bin/sh", tmpFile]); + new java.io.File(tmpFile)['delete'](); + } + } + } + if (cmdDir && !project.getTargets().containsKey("init-cmd")) { + var importDir = project.getProperty("build-impl.dir") || + (cmdDir + "/ant/build/app/build-impl.xml"); + var importTask = project.createTask("import"); + importTask.setOwningTarget(self.getOwningTarget()); + importTask.setLocation(self.getLocation()); + importTask.setFile(importDir); + importTask.execute(); + } +]]> + + + + + + + + + + + + - - - - - \ No newline at end of file +