-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy path1_aapt.bsh
More file actions
20 lines (15 loc) · 723 Bytes
/
1_aapt.bsh
File metadata and controls
20 lines (15 loc) · 723 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// BeanShell aapt script for JavaIDEdroid
//
stScriptPath = dirname(pathToFile(getSourceFileInfo()).getAbsolutePath())+"/";
stScriptPath=stScriptPath.replace('\\','/');
source (stScriptPath+"0_setname.bsh");
outdir=stScriptPath+"bin/test/"+name;
System.out.println("***** Calling Aapt ...");
G.bshTask.fnPublishProgress("Running Aapt...");
args = "p -m -J "+stScriptPath+"gen";
args += " -M "+stScriptPath+"AndroidManifest.xml";
args += " -v -S "+stScriptPath+"res";
args += " -I /sdcard/!Programme/win32/Programs/android-sdk/platforms/android-8/android.jar";
args += " -f -F "+outdir+"/"+name+".apk.res";
G.iScriptResultCode = G.ide.fnAapt(args);
if (G.iScriptResultCode>0) G.bshTask.fnToast("aapt failed!",10000);