Author: hlship
Date: Wed Dec 19 10:06:13 2007
New Revision: 605642
URL: http://svn.apache.org/viewvc?rev=605642&view=rev
Log:
Change new-project script to not (normally) specify archetype version, unless
specificaly asked to
Modified:
tapestry/tapestry5/trunk/support/new-project
Modified: tapestry/tapestry5/trunk/support/new-project
URL:
http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/support/new-project?rev=605642&r1=605641&r2=605642&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/support/new-project (original)
+++ tapestry/tapestry5/trunk/support/new-project Wed Dec 19 10:06:13 2007
@@ -5,8 +5,8 @@
$group = nil
$artifact = nil
$package = nil
+$archetypeVersion = nil
$version = "1.0.0-SNAPSHOT"
-$archetypeVersion = "5.0.5"
$offline = false
$opts = OptionParser.new do |opts|
@@ -68,11 +68,14 @@
"archetype:create",
"-DarchetypeGroupId=org.apache.tapestry",
"-DarchetypeArtifactId=quickstart",
- "-DarchetypeVersion=#$archetypeVersion",
"-DgroupId=#$group",
"-DartifactId=#$artifact",
"-DartifactVersion=#$version",
"-DpackageName=#$package"]
+
+if $archetypeVersion
+ command << "-DarchetypeVersion=#$archetypeVersion"
+end
command = command.join ' '