summaryrefslogtreecommitdiffstats
path: root/scilab/contrib/toolbox_skeleton/src/java/builder_java.sce
blob: a1c7367e7b68281e57844bc895a22b16e3796484 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// This file is released under the 3-clause BSD license. See COPYING-BSD.

// This macro compiles JAR from Java files

function builder_java()
    src_java_dir = get_absolute_file_path();

    curdir = pwd();
    cd(src_java_dir);

    jar_dir = fullpath(fullfile(src_java_dir, "../../jar"));
    if ~isdir(jar_dir)
        mkdir(jar_dir);
    end

    package_name = "org.scilab.contrib.toolboxskeleton";
    jar_file_path = fullfile(jar_dir, package_name + ".jar");
    ilib_build_jar(jar_file_path, package_name, src_java_dir);

    cd(curdir);
endfunction

builder_java();
clear builder_java;