src/com/esotericsoftware/scar/Build.java
static public boolean executeDocument (Project project) throws IOException {
		String code = project.getDocument();
		if (code == null || code.trim().isEmpty()) return false;
		HashMap<String, Object> parameters = new HashMap();
		parameters.put("project", project);
		try {
			Scar.executeCode(code, parameters, project);
		} catch (RuntimeException ex) {
			throw new RuntimeException("Error executing code for project: " + project, ex);
		}
		return true;
	}
/** Executes Java code in the specified project's document, if any.
	 * @return true if code was executed. */
Executes Java code in the specified project's document, if any.
@return true if code was executed.
Executes Java code in the specified project ' s document if any . @return true if code was executed .
static public boolean executeDocument (Project project) throws IOException {
		String code = project.getDocument();
		if (code == null || code.trim().isEmpty()) return false;
		HashMap<String, Object> parameters = new HashMap();
		parameters.put("project", project);
		try {
			Scar.executeCode(code, parameters, project);
		} catch (RuntimeException ex) {
			throw new RuntimeException("Error executing code for project: " + project, ex);
		}
		return true;
	}
static public boolean executeDocument ( Project project ) throws IOException { String code = project . getDocument ( ) ; if ( code == null || code . trim ( ) . isEmpty ( ) ) return false ; HashMap < String , Object > parameters = new HashMap ( ) ; parameters . put ( "project" , project ) ; try { Scar . executeCode ( code , parameters , project ) ; } catch ( RuntimeException ex ) { throw new RuntimeException ( "Error executing code for project: " + project , ex ) ; } return true ; }
Executes Java code in the specified project's document, if any.
Executes Java code in the specified project ' s document if any .