owl-cli 7.7.0 → 7.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bin/owl-init.js
CHANGED
|
@@ -26,12 +26,13 @@ let cwd = process.cwd();
|
|
|
26
26
|
|
|
27
27
|
//复制owlconfig.json到 当前目录
|
|
28
28
|
var templatePath = join(__dirname, "../defaultTemplate")
|
|
29
|
-
var buildProperties = join(cwd,'build.properties');
|
|
29
|
+
var buildProperties = join(cwd,'/buildProperties/build.properties');
|
|
30
30
|
var antLibPath = join(__dirname,'../antLib')
|
|
31
31
|
let owlconfig = {
|
|
32
32
|
"models":"models",
|
|
33
33
|
"templates":templatePath,
|
|
34
34
|
"generatedApps":"generatedApps",
|
|
35
|
+
"deployApps": ["owlsysApps"],
|
|
35
36
|
"buildType":"release",
|
|
36
37
|
"buildProperties":buildProperties,
|
|
37
38
|
"libpath":antLibPath
|
|
@@ -60,8 +61,15 @@ let buildPropertiesPath = join(__dirname,'../examples/buildProperties');
|
|
|
60
61
|
let fullname = resolve(buildPropertiesPath,'build.properties');
|
|
61
62
|
let buildPropertiesDir = join(cwd,"buildProperties");
|
|
62
63
|
fs.mkdirSync(buildPropertiesDir)
|
|
64
|
+
|
|
65
|
+
|
|
63
66
|
let dstBuildProperties = resolve(buildPropertiesDir,'build.properties')
|
|
64
|
-
|
|
67
|
+
|
|
68
|
+
let buildPropertiesContent = "deployUrl=http://localhost/deployer/deploy.jsp\n" +
|
|
69
|
+
"deployPass=change_it_in_catalina_sh\n";
|
|
70
|
+
|
|
71
|
+
buildPropertiesContent += "antlibpath=" + antLibPath.replace(/\\/g, "/") + "\n";
|
|
72
|
+
fs.writeFileSync(dstBuildProperties, buildPropertiesContent, {flag: 'w'})
|
|
65
73
|
|
|
66
74
|
|
|
67
75
|
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
deployUrl=http://
|
|
2
|
-
deployPass=
|
|
3
|
-
|
|
1
|
+
deployUrl=http://localhost/deployer/deploy.jsp
|
|
2
|
+
deployPass=passkey_in_catalina_sh
|
|
3
|
+
antlibpath=c:\\ant\\
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8" ?>
|
|
2
2
|
<project name="commonService" default="all" basedir=".">
|
|
3
3
|
<property file="../../buildProperties/build.properties"></property>
|
|
4
|
-
<property name="libpath" value="
|
|
4
|
+
<property name="libpath" value="${antlibpath}"></property>
|
|
5
5
|
<target name="build">
|
|
6
6
|
<mkdir dir="out"/>
|
|
7
7
|
<exec executable="java">
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8" ?>
|
|
2
2
|
<project name="owlService" default="all" basedir=".">
|
|
3
3
|
<property file="../../buildProperties/build.properties"></property>
|
|
4
|
-
<property name="libpath" value="
|
|
4
|
+
<property name="libpath" value="${antlibpath}"></property>
|
|
5
5
|
<target name="build">
|
|
6
6
|
<mkdir dir="out"/>
|
|
7
7
|
<exec executable="java">
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8" ?>
|
|
2
2
|
<project name="owlShell" default="all" basedir=".">
|
|
3
3
|
<property file="../../buildProperties/build.properties"></property>
|
|
4
|
+
<property name="libpath" value="${antlibpath}"></property>
|
|
4
5
|
<target name="build">
|
|
5
6
|
<mkdir dir="out"/>
|
|
6
7
|
<exec executable="java">
|
|
7
8
|
<arg line="-jar"></arg>
|
|
8
|
-
<arg path="
|
|
9
|
+
<arg path="${libpath}/appBuilder.jar"/>
|
|
9
10
|
<arg line="src/"></arg>
|
|
10
11
|
<arg line="out/owlShell.zip"/>
|
|
11
12
|
</exec>
|
|
@@ -14,7 +15,7 @@
|
|
|
14
15
|
<target name="deploy">
|
|
15
16
|
<exec executable="java">
|
|
16
17
|
<arg line="-jar "></arg>
|
|
17
|
-
<arg path="
|
|
18
|
+
<arg path="${libpath}/appDeployer.jar"/>
|
|
18
19
|
<arg line="${deployUrl}"></arg>
|
|
19
20
|
<arg line="${deployPass}"></arg>
|
|
20
21
|
<arg line="out/owlShell.zip"/>
|