mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-03-11 06:40:18 +01:00
remove jsw, because of mission win x64 support
This commit is contained in:
@@ -54,6 +54,12 @@ public class ServerApplication
|
||||
/** Field description */
|
||||
public static final String APPINFO = "/app-info.xml";
|
||||
|
||||
/** Field description */
|
||||
public static final String PROPERTY_BASEDIR = "basedir";
|
||||
|
||||
/** Field description */
|
||||
public static final String PROPERTY_SCMBASEDIR = "scm.basedir";
|
||||
|
||||
/** Field description */
|
||||
public static final int RETURNCODE_CLI_ERROR = 2;
|
||||
|
||||
@@ -97,6 +103,18 @@ public class ServerApplication
|
||||
System.exit(RETURNCODE_MISSING_SERVER_IMPLEMENTATION);
|
||||
}
|
||||
|
||||
String basedir = System.getProperty(PROPERTY_BASEDIR);
|
||||
|
||||
if (basedir != null)
|
||||
{
|
||||
if (!basedir.endsWith(File.separator))
|
||||
{
|
||||
basedir = basedir.concat(File.separator);
|
||||
}
|
||||
|
||||
System.setProperty(PROPERTY_SCMBASEDIR, basedir);
|
||||
}
|
||||
|
||||
File webapp = new File("webapp", appInfo.getAppName());
|
||||
|
||||
server.start(webapp);
|
||||
|
||||
Reference in New Issue
Block a user