Browse Source

First commit

skylarmt 3 years ago
commit
94c62656b4

+ 73
- 0
build.xml View File

@@ -0,0 +1,73 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<!-- You may freely edit this file. See commented blocks below for -->
3
+<!-- some examples of how to customize the build. -->
4
+<!-- (If you delete it and reopen the project it will be recreated.) -->
5
+<!-- By default, only the Clean and Build commands use this build script. -->
6
+<!-- Commands such as Run, Debug, and Test only use this build script if -->
7
+<!-- the Compile on Save feature is turned off for the project. -->
8
+<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
9
+<!-- in the project's Project Properties dialog box.-->
10
+<project name="SyMAT_Toolkit_Template" default="default" basedir=".">
11
+    <description>Builds, tests, and runs the project SyMAT Toolkit Template.</description>
12
+    <import file="nbproject/build-impl.xml"/>
13
+    <!--
14
+
15
+    There exist several targets which are by default empty and which can be 
16
+    used for execution of your tasks. These targets are usually executed 
17
+    before and after some main targets. They are: 
18
+
19
+      -pre-init:                 called before initialization of project properties
20
+      -post-init:                called after initialization of project properties
21
+      -pre-compile:              called before javac compilation
22
+      -post-compile:             called after javac compilation
23
+      -pre-compile-single:       called before javac compilation of single file
24
+      -post-compile-single:      called after javac compilation of single file
25
+      -pre-compile-test:         called before javac compilation of JUnit tests
26
+      -post-compile-test:        called after javac compilation of JUnit tests
27
+      -pre-compile-test-single:  called before javac compilation of single JUnit test
28
+      -post-compile-test-single: called after javac compilation of single JUunit test
29
+      -pre-jar:                  called before JAR building
30
+      -post-jar:                 called after JAR building
31
+      -post-clean:               called after cleaning build products
32
+
33
+    (Targets beginning with '-' are not intended to be called on their own.)
34
+
35
+    Example of inserting an obfuscator after compilation could look like this:
36
+
37
+        <target name="-post-compile">
38
+            <obfuscate>
39
+                <fileset dir="${build.classes.dir}"/>
40
+            </obfuscate>
41
+        </target>
42
+
43
+    For list of available properties check the imported 
44
+    nbproject/build-impl.xml file. 
45
+
46
+
47
+    Another way to customize the build is by overriding existing main targets.
48
+    The targets of interest are: 
49
+
50
+      -init-macrodef-javac:     defines macro for javac compilation
51
+      -init-macrodef-junit:     defines macro for junit execution
52
+      -init-macrodef-debug:     defines macro for class debugging
53
+      -init-macrodef-java:      defines macro for class execution
54
+      -do-jar:                  JAR building
55
+      run:                      execution of project 
56
+      -javadoc-build:           Javadoc generation
57
+      test-report:              JUnit report generation
58
+
59
+    An example of overriding the target for project execution could look like this:
60
+
61
+        <target name="run" depends="SyMAT_Toolkit_Template-impl.jar">
62
+            <exec dir="bin" executable="launcher.exe">
63
+                <arg file="${dist.jar}"/>
64
+            </exec>
65
+        </target>
66
+
67
+    Notice that the overridden target depends on the jar target and not only on 
68
+    the compile target as the regular run target does. Again, for a list of available 
69
+    properties which you can use, check the target you are overriding in the
70
+    nbproject/build-impl.xml file. 
71
+
72
+    -->
73
+</project>

BIN
lib/CopyLibs/org-netbeans-modules-java-j2seproject-copylibstask.jar View File


+ 4
- 0
lib/nblibraries.properties View File

@@ -0,0 +1,4 @@
1
+libs.CopyLibs.classpath=\
2
+    ${base}/CopyLibs/org-netbeans-modules-java-j2seproject-copylibstask.jar
3
+libs.CopyLibs.displayName=CopyLibs Task
4
+libs.CopyLibs.prop-version=2.0

+ 1473
- 0
nbproject/build-impl.xml
File diff suppressed because it is too large
View File


+ 8
- 0
nbproject/genfiles.properties View File

@@ -0,0 +1,8 @@
1
+build.xml.data.CRC32=48116ce0
2
+build.xml.script.CRC32=2c9a55c0
3
+build.xml.stylesheet.CRC32=8064a381@1.75.2.48
4
+# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
5
+# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
6
+nbproject/build-impl.xml.data.CRC32=48116ce0
7
+nbproject/build-impl.xml.script.CRC32=2e76e1e6
8
+nbproject/build-impl.xml.stylesheet.CRC32=876e7a8f@1.75.2.48

+ 71
- 0
nbproject/project.properties View File

@@ -0,0 +1,71 @@
1
+annotation.processing.enabled=true
2
+annotation.processing.enabled.in.editor=false
3
+annotation.processing.processor.options=
4
+annotation.processing.processors.list=
5
+annotation.processing.run.all.processors=true
6
+annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output
7
+build.classes.dir=${build.dir}/classes
8
+build.classes.excludes=**/*.java,**/*.form
9
+# This directory is removed when the project is cleaned:
10
+build.dir=build
11
+build.generated.dir=${build.dir}/generated
12
+build.generated.sources.dir=${build.dir}/generated-sources
13
+# Only compile against the classpath explicitly listed here:
14
+build.sysclasspath=ignore
15
+build.test.classes.dir=${build.dir}/test/classes
16
+build.test.results.dir=${build.dir}/test/results
17
+# Uncomment to specify the preferred debugger connection transport:
18
+#debug.transport=dt_socket
19
+debug.classpath=\
20
+    ${run.classpath}
21
+debug.test.classpath=\
22
+    ${run.test.classpath}
23
+# Files in build.classes.dir which should be excluded from distribution jar
24
+dist.archive.excludes=
25
+# This directory is removed when the project is cleaned:
26
+dist.dir=dist
27
+dist.jar=${dist.dir}/SyMAT_Toolkit_Template.jar
28
+dist.javadoc.dir=${dist.dir}/javadoc
29
+excludes=
30
+includes=**
31
+jar.compress=false
32
+javac.classpath=
33
+# Space-separated list of extra javac options
34
+javac.compilerargs=
35
+javac.deprecation=false
36
+javac.processorpath=\
37
+    ${javac.classpath}
38
+javac.source=1.8
39
+javac.target=1.8
40
+javac.test.classpath=\
41
+    ${javac.classpath}:\
42
+    ${build.classes.dir}
43
+javac.test.processorpath=\
44
+    ${javac.test.classpath}
45
+javadoc.additionalparam=
46
+javadoc.author=false
47
+javadoc.encoding=${source.encoding}
48
+javadoc.noindex=false
49
+javadoc.nonavbar=false
50
+javadoc.notree=false
51
+javadoc.private=false
52
+javadoc.splitindex=true
53
+javadoc.use=true
54
+javadoc.version=false
55
+javadoc.windowtitle=
56
+meta.inf.dir=${src.dir}/META-INF
57
+mkdist.disabled=true
58
+platform.active=JDK_1.8
59
+run.classpath=\
60
+    ${javac.classpath}:\
61
+    ${build.classes.dir}
62
+# Space-separated list of JVM arguments used when running the project.
63
+# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value.
64
+# To set system properties for unit tests define test-sys-prop.name=value:
65
+run.jvmargs=
66
+run.test.classpath=\
67
+    ${javac.test.classpath}:\
68
+    ${build.test.classes.dir}
69
+source.encoding=UTF-8
70
+src.dir=src
71
+test.src.dir=test

+ 19
- 0
nbproject/project.xml View File

@@ -0,0 +1,19 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project xmlns="http://www.netbeans.org/ns/project/1">
3
+    <type>org.netbeans.modules.java.j2seproject</type>
4
+    <configuration>
5
+        <data xmlns="http://www.netbeans.org/ns/j2se-project/3">
6
+            <name>SyMAT Toolkit Template</name>
7
+            <explicit-platform explicit-source-supported="true"/>
8
+            <source-roots>
9
+                <root id="src.dir"/>
10
+            </source-roots>
11
+            <test-roots>
12
+                <root id="test.src.dir"/>
13
+            </test-roots>
14
+        </data>
15
+        <libraries xmlns="http://www.netbeans.org/ns/ant-project-libraries/1">
16
+            <definitions>.\lib\nblibraries.properties</definitions>
17
+        </libraries>
18
+    </configuration>
19
+</project>

+ 13
- 0
src/com/symatapp/toolkit/HelloWorld.java View File

@@ -0,0 +1,13 @@
1
+package com.symatapp.toolkit;
2
+
3
+/**
4
+ * Sample class. Public functions available from scripts, etc. using the
5
+ * variable mapped in meta.txt.
6
+ */
7
+public class HelloWorld {
8
+    
9
+    public String world() {
10
+        return "Hello World!";
11
+    }
12
+    
13
+}

+ 1
- 0
src/meta.txt View File

@@ -0,0 +1 @@
1
+com.symatapp.toolkit.HelloWorld=hello

Loading…
Cancel
Save