org.apache.tools.ant.taskdefs.Mkdir Java Examples

The following examples show how to use org.apache.tools.ant.taskdefs.Mkdir. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AntFile.java    From antiplag with Apache License 2.0 6 votes vote down vote up
public static int makeDir(File f){
	int res = -1;
	try {
		Project prj=new Project(); 
		Mkdir mkdir=new Mkdir(); 
		mkdir.setProject(prj); 
		mkdir.setDir(f); 
		mkdir.execute(); 
		res = 1;
	} catch (BuildException e) {
		// TODO Auto-generated catch block
		e.printStackTrace();
	}
	
	return res;
}