ow-nuxeo 0.3.1 → 0.4.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.
Files changed (2) hide show
  1. data/bin/ow-nuxeo +20 -3
  2. metadata +13 -13
@@ -38,7 +38,7 @@ def runCommand(title, command)
38
38
  puts
39
39
  if !system(command)
40
40
  putHeader 'ERROR: A command failed. Aborting.'
41
- exit -1
41
+ raise 'failed system command'
42
42
  end
43
43
  end
44
44
 
@@ -60,7 +60,7 @@ def displayHelp()
60
60
  puts 'fastbuild : Full build, but skip the tests'
61
61
  puts 'fastestbuild : Build only the changed code, skip the tests, run offline (note: it won\'t fetch the latest Nuxeo Studio plugin version)'
62
62
  puts 'test : Run the Maven tests only, in debug mode'
63
- puts 'release : Full build with the "release" flag enabled, to enable the use of the tagged Nuxeo Studio plugin'
63
+ puts 'release : Full build with the "release" profile enabled, to enable the use of the tagged Nuxeo Studio plugin'
64
64
  puts ''
65
65
  puts '* AVAILABLE GOALS > OTHER MAVEN-RELATED GOALS'
66
66
  puts 'init : Starts a wizard to create a new Nuxeo project.'
@@ -113,6 +113,8 @@ end
113
113
  # Command loop
114
114
  # ============
115
115
 
116
+ begin
117
+
116
118
  ARGV.each do |arg|
117
119
  case arg
118
120
 
@@ -159,8 +161,19 @@ ARGV.each do |arg|
159
161
  end
160
162
 
161
163
  when 'release'
162
- runCommand('Maven build using matching Studio tag', 'mvn clean install -Drelease')
164
+ begin
165
+ runCommand('Maven build using matching Studio tag', 'mvn clean install -U -Prelease')
166
+ rescue
167
+ # DEPRECATED support
168
+ puts "Maybe your project is using the old release system? Try 'ow-nuxeo release-deprecated'."
169
+ exit -1;
170
+ end
163
171
 
172
+ # DEPRECATED support
173
+ when 'release-deprecated'
174
+ runCommand('Maven build using matching Studio tag (DEPRECATED)', 'mvn clean install -Drelease')
175
+ putHeader("DEPRECATED: To switch to the new release format, set '<id>release</id>' in your release profile, and remove the 'activation' block.")
176
+
164
177
  # Nuxeo commands
165
178
  # ==============
166
179
 
@@ -333,3 +346,7 @@ ARGV.each do |arg|
333
346
  end
334
347
 
335
348
  end
349
+
350
+ rescue
351
+ exit -1
352
+ end
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.3.1
4
+ version: 0.4.0
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: 2014-04-10 00:00:00.000000000 Z
12
+ date: 2014-06-02 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Eases common tasks for Nuxeo integrators, from creating a project from
15
15
  scratch to building and launching it.
@@ -21,26 +21,26 @@ extra_rdoc_files: []
21
21
  files:
22
22
  - bin/ow-nuxeo
23
23
  - archetype/pom.xml
24
- - archetype/src/main/resources/archetype-resources/__rootArtifactId__-distribution/assembly.xml
25
24
  - archetype/src/main/resources/archetype-resources/__rootArtifactId__-distribution/pom.xml
26
- - archetype/src/main/resources/archetype-resources/__rootArtifactId__-distribution/src/main/resources/install/templates/__rootArtifactId__-default/nuxeo.defaults
27
- - archetype/src/main/resources/archetype-resources/__rootArtifactId__-distribution/src/main/resources/package.xml
25
+ - archetype/src/main/resources/archetype-resources/__rootArtifactId__-distribution/assembly.xml
28
26
  - archetype/src/main/resources/archetype-resources/__rootArtifactId__-distribution/src/main/resources/install.xml
29
- - archetype/src/main/resources/archetype-resources/nuxeo-config.default.rb
30
- - archetype/src/main/resources/archetype-resources/nuxeo-config.rb
31
- - archetype/src/main/resources/archetype-resources/settings.xml.part
27
+ - archetype/src/main/resources/archetype-resources/__rootArtifactId__-distribution/src/main/resources/package.xml
28
+ - archetype/src/main/resources/archetype-resources/__rootArtifactId__-distribution/src/main/resources/install/templates/__rootArtifactId__-default/nuxeo.defaults
29
+ - archetype/src/main/resources/archetype-resources/pom.xml
32
30
  - archetype/src/main/resources/archetype-resources/__rootArtifactId__-web/pom.xml
33
- - archetype/src/main/resources/archetype-resources/__rootArtifactId__-web/src/main/resources/OSGI-INF/l10n/messages.properties
31
+ - archetype/src/main/resources/archetype-resources/__rootArtifactId__-web/src/test/resources/log4j.properties
34
32
  - archetype/src/main/resources/archetype-resources/__rootArtifactId__-web/src/main/resources/OSGI-INF/deployment-fragment.xml
33
+ - archetype/src/main/resources/archetype-resources/__rootArtifactId__-web/src/main/resources/OSGI-INF/l10n/messages.properties
35
34
  - archetype/src/main/resources/archetype-resources/__rootArtifactId__-web/src/main/resources/META-INF/MANIFEST.MF
36
35
  - archetype/src/main/resources/archetype-resources/__rootArtifactId__-web/src/main/resources/seam.properties
37
- - archetype/src/main/resources/archetype-resources/__rootArtifactId__-web/src/test/resources/log4j.properties
36
+ - archetype/src/main/resources/archetype-resources/settings.xml.part
37
+ - archetype/src/main/resources/archetype-resources/nuxeo-config.default.rb
38
+ - archetype/src/main/resources/archetype-resources/nuxeo-config.rb
38
39
  - archetype/src/main/resources/archetype-resources/__rootArtifactId__-core/pom.xml
39
- - archetype/src/main/resources/archetype-resources/__rootArtifactId__-core/src/main/resources/OSGI-INF/version-display-contrib.xml
40
+ - archetype/src/main/resources/archetype-resources/__rootArtifactId__-core/src/test/resources/log4j.properties
40
41
  - archetype/src/main/resources/archetype-resources/__rootArtifactId__-core/src/main/resources/OSGI-INF/deployment-fragment.xml
42
+ - archetype/src/main/resources/archetype-resources/__rootArtifactId__-core/src/main/resources/OSGI-INF/version-display-contrib.xml
41
43
  - archetype/src/main/resources/archetype-resources/__rootArtifactId__-core/src/main/resources/META-INF/MANIFEST.MF
42
- - archetype/src/main/resources/archetype-resources/__rootArtifactId__-core/src/test/resources/log4j.properties
43
- - archetype/src/main/resources/archetype-resources/pom.xml
44
44
  - archetype/src/main/resources/META-INF/maven/archetype-metadata.xml
45
45
  homepage: http://rubygems.org/gems/ow-nuxeo
46
46
  licenses: []