Merged branch 'jetty-9.4.x' into 'master'.
This commit is contained in:
commit
4bee2e877f
|
@ -513,19 +513,6 @@ public class JettyRunForkedMojo extends JettyRunMojo
|
|||
props.put("testClasses.dir", webApp.getTestClasses().getAbsolutePath());
|
||||
}
|
||||
|
||||
if ( !webApp.getClassPathFiles().isEmpty() )
|
||||
{
|
||||
StringBuilder stringBuilder = new StringBuilder();
|
||||
for ( File dependency : webApp.getClassPathFiles() )
|
||||
{
|
||||
if (dependency.isDirectory())
|
||||
{
|
||||
stringBuilder.append( dependency.getCanonicalPath() ).append( '|' );
|
||||
}
|
||||
}
|
||||
props.put( "projects.classes.dir", stringBuilder.toString() );
|
||||
}
|
||||
|
||||
//web-inf lib
|
||||
List<File> deps = webApp.getWebInfLib();
|
||||
StringBuffer strbuff = new StringBuffer();
|
||||
|
|
|
@ -314,16 +314,6 @@ public class Starter
|
|||
jars.add(new File(names[j].trim()));
|
||||
webApp.setWebInfLib(jars);
|
||||
}
|
||||
|
||||
str = props.getProperty( "projects.classes.dir" );
|
||||
if (str != null && !"".equals(str.trim()))
|
||||
{
|
||||
List<File> classesDirectories = //
|
||||
Arrays.stream(str.split( Pattern.quote("|") )) //
|
||||
.map( s -> Paths.get( s).toFile() ).collect( Collectors.toList() );
|
||||
webApp.getWebInfLib().addAll( classesDirectories );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public void getConfiguration (String[] args)
|
||||
|
|
Loading…
Reference in New Issue