ow-nuxeo 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -7,7 +7,6 @@
7
7
  <version>${version}</version>
8
8
  <relativePath>..</relativePath>
9
9
  </parent>
10
- <groupId>${groupId}</groupId>
11
10
  <artifactId>${artifactId}</artifactId>
12
11
  <name>${name} : Core</name>
13
12
  <packaging>jar</packaging>
@@ -1,9 +1,9 @@
1
- <component name="${moduleId}.core.version">
1
+ <component name="${nuxeoModuleId}.core.version">
2
2
 
3
3
  <extension target="fr.openwide.commons.utils.jsf.VersionDisplayService" point="config">
4
4
  <config>
5
5
  <versionNumberPrefix>${name} v</versionNumberPrefix>
6
- <bundleMatchRegexp>${artifactId}-.*</bundleMatchRegexp>
6
+ <bundleMatchRegexp>${rootArtifactId}-.*</bundleMatchRegexp>
7
7
  </config>
8
8
  </extension>
9
9
 
@@ -7,7 +7,6 @@
7
7
  <version>${version}</version>
8
8
  <relativePath>..</relativePath>
9
9
  </parent>
10
- <groupId>${groupId}</groupId>
11
10
  <artifactId>${artifactId}</artifactId>
12
11
  <name>${name} : Marketplace distribution</name>
13
12
  <packaging>zip</packaging>
@@ -1,4 +1,4 @@
1
- ## DO NOT EDIT THIS FILE, COPY /templates/${artifactId}-default TO /template/${artifactId} AND ENABLE THE ${artifactId} TEMPLATE ##
1
+ # DO NOT EDIT THIS FILE, COPY /templates/${rootArtifactId}-default TO /template/${rootArtifactId} AND ENABLE THE ${rootArtifactId} TEMPLATE
2
2
 
3
3
  org.nuxeo.ecm.product.name=${name}
4
4
  org.nuxeo.ecm.instance.description=${name}
@@ -1,5 +1,5 @@
1
1
  <!-- See documentation at http://doc.nuxeo.com/x/HgIz -->
2
- <package type="addon" name="${artifactId}" version="@VERSION@">
2
+ <package type="addon" name="${rootArtifactId}" version="@VERSION@">
3
3
  <title>${name}</title>
4
4
  <vendor>${vendor}</vendor>
5
5
 
@@ -8,12 +8,26 @@
8
8
  <nuxeo-validation>none</nuxeo-validation>
9
9
  <production-state>testing</production-state>
10
10
  <supported>false</supported>
11
+
12
+ #set($nuxeoVersionWithoutHotfix = $nuxeoVersion.split('-').get(0))
11
13
  <platforms>
12
- <platform>cap</platform>
14
+ #if($nuxeoVersion.indexOf('5.6') == 0)
15
+ <platform>cap-5.6</platform>
16
+ #elseif($nuxeoVersion.indexOf('5.5') == 0)
17
+ <platform>cap-5.5</platform>
18
+ #else
19
+ <platform>cap-${nuxeoVersionWithoutHotfix}</platform>
20
+ #end
13
21
  </platforms>
14
22
  <dependencies>
15
23
  <dependencies>
16
- <package>nuxeo-dm</package>
24
+ #if($nuxeoVersion.indexOf('5.6') == 0)
25
+ <package>nuxeo-dm-5.6.0</package>
26
+ #elseif($nuxeoVersion.indexOf('5.5') == 0)
27
+ <package>nuxeo-dm-5.5.0</package>
28
+ #else
29
+ <package>nuxeo-dm-${nuxeoVersionWithoutHotfix}</package>
30
+ #end
17
31
  </dependencies>
18
32
  </dependencies>
19
33
  </package>
@@ -7,7 +7,6 @@
7
7
  <version>${version}</version>
8
8
  <relativePath>..</relativePath>
9
9
  </parent>
10
- <groupId>${groupId}</groupId>
11
10
  <artifactId>${artifactId}</artifactId>
12
11
  <name>${name} : Web</name>
13
12
  <packaging>jar</packaging>
@@ -21,11 +21,11 @@
21
21
  </developers>
22
22
 
23
23
  <properties>
24
- <${groupId}.version>${project.version}</${groupId}.version>#if($hasStudioProject != 'false')
25
- <${groupId}.studio.version>0.0.0-SNAPSHOT</${groupId}.studio.version>#end
24
+ <${nuxeoModuleId}.version>${project.version}</${nuxeoModuleId}.version>#if($hasStudioProject != 'false')
25
+ <${nuxeoModuleId}.studio.version>0.0.0-SNAPSHOT</${nuxeoModuleId}.studio.version>#end
26
26
  <nuxeo.version>${nuxeoVersion}</nuxeo.version>
27
27
  <nuxeo.distribution.tools.version>1.11.5</nuxeo.distribution.tools.version>
28
- <openwide.nuxeo.commons.version>0.1.2</openwide.nuxeo.commons.version>
28
+ <fr.openwide.nuxeo.commons.version>0.1.2</fr.openwide.nuxeo.commons.version>
29
29
  <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
30
30
  </properties>
31
31
  #if($hasStudioProject != 'false')
@@ -125,35 +125,35 @@
125
125
  <dependency>
126
126
  <groupId>${studioProjectGroupId}</groupId>
127
127
  <artifactId>${studioProjectArtifactId}</artifactId>
128
- <version>${${groupId}.studio.version}</version>
128
+ <version>${${nuxeoModuleId}.studio.version}</version>
129
129
  </dependency>
130
130
 
131
131
  #end<dependency>
132
132
  <groupId>${groupId}</groupId>
133
133
  <artifactId>${artifactId}-core</artifactId>
134
- <version>${${groupId}.version}</version>
134
+ <version>${${nuxeoModuleId}.version}</version>
135
135
  </dependency>
136
136
  <dependency>
137
137
  <groupId>${groupId}</groupId>
138
138
  <artifactId>${artifactId}-web</artifactId>
139
- <version>${${groupId}.version}</version>
139
+ <version>${${nuxeoModuleId}.version}</version>
140
140
  </dependency>
141
141
 
142
142
  <!-- Open Wide commons -->
143
143
  <dependency>
144
144
  <groupId>fr.openwide.nuxeo.commons</groupId>
145
145
  <artifactId>openwide-nuxeo-constants</artifactId>
146
- <version>${openwide.nuxeo.commons.version}</version>
146
+ <version>${fr.openwide.nuxeo.commons.version}</version>
147
147
  </dependency>
148
148
  <dependency>
149
149
  <groupId>fr.openwide.nuxeo.commons</groupId>
150
150
  <artifactId>openwide-nuxeo-utils</artifactId>
151
- <version>${openwide.nuxeo.commons.version}</version>
151
+ <version>${fr.openwide.nuxeo.commons.version}</version>
152
152
  </dependency>
153
153
  <dependency>
154
154
  <groupId>fr.openwide.nuxeo.commons</groupId>
155
155
  <artifactId>openwide-nuxeo-tests-helper</artifactId>
156
- <version>${openwide.nuxeo.commons.version}</version>
156
+ <version>${fr.openwide.nuxeo.commons.version}</version>
157
157
  <scope>test</scope>
158
158
  </dependency>
159
159
  </dependencies>
data/bin/ow-nuxeo CHANGED
@@ -144,6 +144,10 @@ ARGV.each do |arg|
144
144
 
145
145
  puts "\n[2/3] NUXEO INFORMATION"
146
146
  puts "======================="
147
+ while projectInfo['nuxeoVersion'].to_s == ''
148
+ print "Target Nuxeo version (example: '5.6') >> "
149
+ projectInfo['nuxeoVersion'] = STDIN.gets.strip
150
+ end
147
151
  defaultModuleId = projectInfo['groupId'] + '.' + projectInfo['artifactId']
148
152
  print "[OPTIONAL] Module ID (default is '" + defaultModuleId + "') >> "
149
153
  projectInfo['nuxeoModuleId'] = STDIN.gets.strip
@@ -218,7 +222,7 @@ ARGV.each do |arg|
218
222
  puts key + "=" + value.to_s
219
223
  end
220
224
  puts "------------"
221
- print ">> "
225
+ print "(press ENTER or set a variable) >> "
222
226
  confirm = STDIN.gets.strip
223
227
  if confirm.to_s != ''
224
228
  kv = confirm.split(' ')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ow-nuxeo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-08-01 00:00:00.000000000 Z
12
+ date: 2013-08-02 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Eases common tasks with Nuxeo projects, from instanciating a client project
15
15
  to building and launching it.