466647 - Add ${jetty.tag.version} property and expand URL properties
+ Add missing Props.expand(String) for: * the --add-to-start(d) options * the Module.hasFiles() method
This commit is contained in:
parent
f4faf7cb37
commit
e91d3dd18e
|
@ -107,7 +107,7 @@ public class BaseBuilder
|
|||
Licensing licensing = new Licensing();
|
||||
for (Module module : startArgs.getAllModules().getSelected())
|
||||
{
|
||||
if (!module.hasFiles(baseHome))
|
||||
if (!module.hasFiles(baseHome,startArgs.getProperties()))
|
||||
{
|
||||
licensing.addModule(module);
|
||||
}
|
||||
|
@ -208,7 +208,7 @@ public class BaseBuilder
|
|||
dirty |= builder.addModule(mod);
|
||||
for (String file : mod.getFiles())
|
||||
{
|
||||
files.add(new FileArg(mod,file));
|
||||
files.add(new FileArg(mod,startArgs.getProperties().expand(file)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -228,12 +228,12 @@ public class BaseBuilder
|
|||
dirty |= builder.addModule(mod);
|
||||
for (String file : mod.getFiles())
|
||||
{
|
||||
files.add(new FileArg(mod,file));
|
||||
files.add(new FileArg(mod,startArgs.getProperties().expand(file)));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Process files
|
||||
files.addAll(startArgs.getFiles());
|
||||
dirty |= processFileResources(files);
|
||||
|
|
|
@ -221,11 +221,11 @@ public class Module extends Node<Module>
|
|||
return !getName().equals(fileRef);
|
||||
}
|
||||
|
||||
public boolean hasFiles(BaseHome baseHome)
|
||||
public boolean hasFiles(BaseHome baseHome, Props props)
|
||||
{
|
||||
for (String ref : getFiles())
|
||||
{
|
||||
FileArg farg = new FileArg(this,ref);
|
||||
FileArg farg = new FileArg(this,props.expand(ref));
|
||||
Path refPath = baseHome.getBasePath(farg.location);
|
||||
if (!Files.exists(refPath))
|
||||
{
|
||||
|
|
|
@ -50,7 +50,7 @@ public class StartArgs
|
|||
static
|
||||
{
|
||||
String ver = System.getProperty("jetty.version",null);
|
||||
String tag = System.getProperty("jetty.tag.version",null);
|
||||
String tag = System.getProperty("jetty.tag.version","master");
|
||||
|
||||
if (ver == null)
|
||||
{
|
||||
|
@ -73,7 +73,8 @@ public class StartArgs
|
|||
tag = "master";
|
||||
}
|
||||
}
|
||||
else if (ver.contains("-SNAPSHOT"))
|
||||
|
||||
if (tag == null || tag.contains("-SNAPSHOT"))
|
||||
{
|
||||
tag = "master";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue