public JavaPluginBuilder(JavaProjectSettings settings) { string path = AssetDatabase.GetAssetPath(settings); bootclasspath = Folders.BootClasspath; jarFileName = settings.name + ".jar"; javajdk = Folders.JavaJDKPath; outputDir = settings.output_dir; workingDirectory = Application.dataPath; workingDirectory = workingDirectory.Substring(0, workingDirectory.Length - "Assets/".Length) + "/" + path; workingDirectory = Path.GetDirectoryName(workingDirectory); projectDir = Application.dataPath; sourceFiles = Directory.GetFiles(workingDirectory, "*.java", SearchOption.AllDirectories); jarFiles = settings.classpath; binDir = projectDir + "/" + outputDir + "/bin-temp/"; }
public static void Build() { JavaProjectSettings settings = Selection.activeObject as JavaProjectSettings; new JavaPluginBuilder(settings).DoBuild(); }
public JavaPluginBuilder(JavaProjectSettings settings) { string path = AssetDatabase.GetAssetPath (settings); bootclasspath = Folders.BootClasspath; jarFileName = settings.name+".jar"; javajdk = Folders.JavaJDKPath; outputDir = settings.output_dir; workingDirectory = Application.dataPath; workingDirectory = workingDirectory.Substring (0, workingDirectory.Length - "Assets/".Length) + "/" + path; workingDirectory = Path.GetDirectoryName (workingDirectory); projectDir = Application.dataPath; sourceFiles = Directory.GetFiles (workingDirectory, "*.java", SearchOption.AllDirectories); jarFiles = settings.classpath; binDir = projectDir + "/" + outputDir + "/bin-temp/"; }