src/com/esotericsoftware/scar/Build.java
static public void jnlp (Project project, String url, String company, String title, String splashImage) throws IOException {
		if (project == null) throw new IllegalArgumentException("project cannot be null.");
		if (url == null) throw new IllegalArgumentException("url cannot be null.");
		if (!url.startsWith("http")) throw new RuntimeException("Invalid url: " + url);
		if (company == null) throw new IllegalArgumentException("company cannot be null.");
		if (title == null) throw new IllegalArgumentException("title cannot be null.");

		if (DEBUG)
			debug(project.toString(), "JNLP (" + url + ", " + company + ", " + title + ", " + splashImage + ")");
		else if (INFO) //
			info(project.toString(), "JNLP");

		if (!project.has("main")) throw new RuntimeException("Unable to generate JNLP: project has no main class");

		String projectJarName;
		if (project.has("version"))
			projectJarName = project.format("$name$-$version$.jar");
		else
			projectJarName = project.format("$name$.jar");

		String jwsDir = mkdir(project.path("$target$/jws/"));
		Scar.jnlp(jwsDir, project.get("main"), projectJarName, url, title, company, splashImage);
	}
/** Generates a JNLP file in the "jws" directory. JARs in the "jws" directory are included in the JNLP. JARs containing
	 * "native" and "win", "mac", "linux", or "solaris" are properly included in the native section of the JNLP. The "main"
	 * property is used for the main class in the JNLP.
	 * @param splashImage Can be null. */
Generates a JNLP file in the "jws" directory. JARs in the "jws" directory are included in the JNLP.
Generates a JNLP file in the " jws " directory . JARs in the " jws " directory are included in the JNLP .
static public void jnlp (Project project, String url, String company, String title, String splashImage) throws IOException {
		if (project == null) throw new IllegalArgumentException("project cannot be null.");
		if (url == null) throw new IllegalArgumentException("url cannot be null.");
		if (!url.startsWith("http")) throw new RuntimeException("Invalid url: " + url);
		if (company == null) throw new IllegalArgumentException("company cannot be null.");
		if (title == null) throw new IllegalArgumentException("title cannot be null.");
		if (DEBUG)
			debug(project.toString(), "JNLP (" + url + ", " + company + ", " + title + ", " + splashImage + ")");
		else if (INFO) 
			info(project.toString(), "JNLP");
		if (!project.has("main")) throw new RuntimeException("Unable to generate JNLP: project has no main class");
		String projectJarName;
		if (project.has("version"))
			projectJarName = project.format("$name$-$version$.jar");
		else
			projectJarName = project.format("$name$.jar");
		String jwsDir = mkdir(project.path("$target$/jws/"));
		Scar.jnlp(jwsDir, project.get("main"), projectJarName, url, title, company, splashImage);
	}
static public void jnlp ( Project project , String url , String company , String title , String splashImage ) throws IOException { if ( project == null ) throw new IllegalArgumentException ( "project cannot be null." ) ; if ( url == null ) throw new IllegalArgumentException ( "url cannot be null." ) ; if ( ! url . startsWith ( "http" ) ) throw new RuntimeException ( "Invalid url: " + url ) ; if ( company == null ) throw new IllegalArgumentException ( "company cannot be null." ) ; if ( title == null ) throw new IllegalArgumentException ( "title cannot be null." ) ; if ( DEBUG ) debug ( project . toString ( ) , "JNLP (" + url + ", " + company + ", " + title + ", " + splashImage + ")" ) ; else if ( INFO ) info ( project . toString ( ) , "JNLP" ) ; if ( ! project . has ( "main" ) ) throw new RuntimeException ( "Unable to generate JNLP: project has no main class" ) ; String projectJarName ; if ( project . has ( "version" ) ) projectJarName = project . format ( "$name$-$version$.jar" ) ; else projectJarName = project . format ( "$name$.jar" ) ; String jwsDir = mkdir ( project . path ( "$target$/jws/" ) ) ; Scar . jnlp ( jwsDir , project . get ( "main" ) , projectJarName , url , title , company , splashImage ) ; }
Generates a JNLP file in the "jws" directory.
Generates a JNLP file in the " jws " directory .
//