135 error(
" Sourcefile must be set ");
138 outjava =
cell.empty(1,0);
139 outdex =
cell.empty(1,0);
140 for sidx = 1:length(this.
Sources)
142 pkgdir = strrep(this.
Package,
" . ",filesep);
144 cmd = sprintf(
" javac -d %s %s ", this.
TargetFolder, [src
" .java "]);
146 jfile = fullfile(fullfile(this.
JProjectSource,pkgdir),[src
" .java "]);
151 cmd = sprintf(
" javac -classpath '%s' -d %s %s ", cp, this.
TargetFolder, jfile);
154 fprintf(
" Compiling and exporting class '%s'...\n ",src);
157 relpath = fullfile(pkgdir,[src
" .class "]);
159 outjava[sidx] = sprintf(
" -C %s %s ",this.
TargetFolder,relpath);
169 system(sprintf(
" jar -cf %s %s ",javajar,...
176 system(sprintf(
" dx --dex --no-strict --output='%s' %s ",dexjar,...
199 #if 0 //mtoc++: 'set.CreateJVM'
201 if system(
" javac ") == 1
202 error(
" Error checking for javac compiler. ");
211 #if 0 //mtoc++: 'set.CreateAndroid'
226 #if 0 //mtoc++: 'set.TargetFolder'
228 if (isunix && value(1) ~=
" / ") || ispc && isempty(strfind(value,
" : "))
229 value = fullfile(pwd,value);
Collection of generally useful functions.
logical CreateAndroid
Create a class for the Dalvik VM (Android dex required)
char Package
The classes package (optional, required if it has one but the default package)
logical CreateJVM
Create a class for java virtual machine.
cell< char > AdditionalClassPath
An additional cell of paths for the java classpath.
Matlab's base handle class (documentation generation substitute)
Java: Java utils like compiling classes out of matlab.
function exportFunctions()
Compile AffFcns class. JProjectSource needed for JRB/JKerMor models.
cell< char > Sources
The names of the source files.
static function char str = implode(char|rowvec data,char glue,char format)
Implodes the elements of data using glue.
A MatLab character array.
static const AndroidJarFile
char TargetFolder
The target folder for the class output.
char JProjectSource
An additional JProjectSource for inclusion.