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

		Paths classpath = classpath(project, true);
		Paths source = project.getPaths("source");

		if (INFO) info(project.toString(), "Compile");
		if (DEBUG) {
			debug(project.toString(), "Source: " + source.count() + " files");
			debug(project.toString(), "Classpath: " + classpath.toString("\n"));
		}

		String classesDir = mkdir(project.path("$target$/classes/"));

		String defaultTarget = System.getProperty("java.version");
		if (defaultTarget.startsWith("1.")) {
			int index = defaultTarget.substring(2).indexOf('.');
			if (index != -1) defaultTarget = defaultTarget.substring(0, index + 2);
		} else {
			int index = defaultTarget.indexOf('.');
			if (index != -1) defaultTarget = defaultTarget.substring(0, index);
		}
		Scar.compile(source, classpath, classesDir, project.get("compileTarget", defaultTarget));
		return classesDir;
	}
/** Collects the source files using the "source" property and compiles them into a "classes" directory under the target
	 * directory. It uses "classpath" and "dependencies" to find the libraries required to compile the source.
	 * <p>
	 * Note: Each dependency project is not built automatically. Each needs to be built before the dependent project.
	 * @return The path to the "classes" directory. */
Collects the source files using the "source" property and compiles them into a "classes" directory under the target
directory. It uses "classpath" and "dependencies" to find the libraries required to compile the source.

Note: Each dependency project is not built automatically. Each needs to be built before the dependent project.
@return The path to the "classes" directory.
Collects the source files using the " source " property and compiles them into a " classes " directory under the target directory . It uses " classpath " and " dependencies " to find the libraries required to compile the source . Note : Each dependency project is not built automatically . Each needs to be built before the dependent project . @return The path to the " classes " directory .
static public String compile (Project project) throws IOException {
		if (project == null) throw new IllegalArgumentException("project cannot be null.");
		Paths classpath = classpath(project, true);
		Paths source = project.getPaths("source");
		if (INFO) info(project.toString(), "Compile");
		if (DEBUG) {
			debug(project.toString(), "Source: " + source.count() + " files");
			debug(project.toString(), "Classpath: " + classpath.toString("\n"));
		}
		String classesDir = mkdir(project.path("$target$/classes/"));
		String defaultTarget = System.getProperty("java.version");
		if (defaultTarget.startsWith("1.")) {
			int index = defaultTarget.substring(2).indexOf('.');
			if (index != -1) defaultTarget = defaultTarget.substring(0, index + 2);
		} else {
			int index = defaultTarget.indexOf('.');
			if (index != -1) defaultTarget = defaultTarget.substring(0, index);
		}
		Scar.compile(source, classpath, classesDir, project.get("compileTarget", defaultTarget));
		return classesDir;
	}
static public String compile ( Project project ) throws IOException { if ( project == null ) throw new IllegalArgumentException ( "project cannot be null." ) ; Paths classpath = classpath ( project , true ) ; Paths source = project . getPaths ( "source" ) ; if ( INFO ) info ( project . toString ( ) , "Compile" ) ; if ( DEBUG ) { debug ( project . toString ( ) , "Source: " + source . count ( ) + " files" ) ; debug ( project . toString ( ) , "Classpath: " + classpath . toString ( "\n" ) ) ; } String classesDir = mkdir ( project . path ( "$target$/classes/" ) ) ; String defaultTarget = System . getProperty ( "java.version" ) ; if ( defaultTarget . startsWith ( "1." ) ) { int index = defaultTarget . substring ( 2 ) . indexOf ( '.' ) ; if ( index != - 1 ) defaultTarget = defaultTarget . substring ( 0 , index + 2 ) ; } else { int index = defaultTarget . indexOf ( '.' ) ; if ( index != - 1 ) defaultTarget = defaultTarget . substring ( 0 , index ) ; } Scar . compile ( source , classpath , classesDir , project . get ( "compileTarget" , defaultTarget ) ) ; return classesDir ; }
Collects the source files using the "source" property and compiles them into a "classes" directory under the target
 directory.
Collects the source files using the " source " property and compiles them into a " classes " directory under the target directory .