src/com/esotericsoftware/scar/Build.java
static public String jar (Project project) throws IOException {
		if (project == null) throw new IllegalArgumentException("project cannot be null.");

		if (INFO) info(project.toString(), "JAR");

		String jarDir = mkdir(project.path("$target$/jar/"));

		String classesDir = project.path("$target$/classes/");
		paths(classesDir, "**/*.class").copyTo(jarDir);
		project.getPaths("resources").copyTo(jarDir);

		String jarFile;
		if (project.has("version"))
			jarFile = project.path("$target$/$name$-$version$.jar");
		else
			jarFile = project.path("$target$/$name$.jar");

		Jar.jar(jarFile, jarDir, project.get("main"), classpath(project, true));
		return jarFile;
	}
/** Collects the class files from the "classes" directory and all the resource files using the "resources" property and encodes
	 * them into a JAR file.
	 * 
	 * If the resources don't contain a META-INF/MANIFEST.MF file, one is generated. If the project has a main property, the
	 * generated manifest will include "Main-Class" and "Class-Path" entries to allow the main class to be run with "java -jar".
	 * @return The path to the created JAR file. */
Collects the class files from the "classes" directory and all the resource files using the "resources" property and encodes
them into a JAR file.

If the resources don't contain a META-INF/MANIFEST.MF file, one is generated.
Collects the class files from the " classes " directory and all the resource files using the " resources " property and encodes them into a JAR file . If the resources don ' t contain a META - INF / MANIFEST . MF file one is generated .
static public String jar (Project project) throws IOException {
		if (project == null) throw new IllegalArgumentException("project cannot be null.");
		if (INFO) info(project.toString(), "JAR");
		String jarDir = mkdir(project.path("$target$/jar/"));
		String classesDir = project.path("$target$/classes/");
		paths(classesDir, "**/*.class").copyTo(jarDir);
		project.getPaths("resources").copyTo(jarDir);
		String jarFile;
		if (project.has("version"))
			jarFile = project.path("$target$/$name$-$version$.jar");
		else
			jarFile = project.path("$target$/$name$.jar");
		Jar.jar(jarFile, jarDir, project.get("main"), classpath(project, true));
		return jarFile;
	}
static public String jar ( Project project ) throws IOException { if ( project == null ) throw new IllegalArgumentException ( "project cannot be null." ) ; if ( INFO ) info ( project . toString ( ) , "JAR" ) ; String jarDir = mkdir ( project . path ( "$target$/jar/" ) ) ; String classesDir = project . path ( "$target$/classes/" ) ; paths ( classesDir , "**/*.class" ) . copyTo ( jarDir ) ; project . getPaths ( "resources" ) . copyTo ( jarDir ) ; String jarFile ; if ( project . has ( "version" ) ) jarFile = project . path ( "$target$/$name$-$version$.jar" ) ; else jarFile = project . path ( "$target$/$name$.jar" ) ; Jar . jar ( jarFile , jarDir , project . get ( "main" ) , classpath ( project , true ) ) ; return jarFile ; }
Collects the class files from the "classes" directory and all the resource files using the "resources" property and encodes
 them into a JAR file.
Collects the class files from the " classes " directory and all the resource files using the " resources " property and encodes them into a JAR file .