getCallable();
77 | }
78 |
--------------------------------------------------------------------------------
/sulky-tasks/src/main/java/de/huxhorn/sulky/tasks/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * This package contains the sulky Task API, a wrapper for Executor, Callable and Future,
3 | * that also supports handling on the event dispatch thread. It's an alternative to
4 | * the SwingWorker that has been added to Java in the 1.6 release.
5 | *
6 | * In contrast to SwingWorker, it contains the definition of a generified
7 | * TaskManager, Task and TaskListener.
8 | *
9 | * The TaskManager is used to keep track of all running (or scheduled) Tasks and sends
10 | * events to registered TaskListeners, optionally using the event dispatch thread for event
11 | * delivery.
12 | *
13 | * A Task contains, in addition to a Callable and the related Future, additional information
14 | * like a TaskManager-related unique Task ID, a name, a description and a map of Strings that can
15 | * be used for arbitrary additional meta data.
16 | */
17 | package de.huxhorn.sulky.tasks;
18 |
--------------------------------------------------------------------------------
/sulky-tasks/src/test/resources/logback-test.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | %-5level - %d{HH:mm:ss.SSS} [%thread] - %file:%line - %msg%n%ex{full}
7 |
8 |
9 |
10 |
18 |
19 |
20 |
21 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/sulky-version/src/main/java/de/huxhorn/sulky/version/ClassStatisticMapper.java:
--------------------------------------------------------------------------------
1 | /*
2 | * sulky-modules - several general-purpose modules.
3 | * Copyright (C) 2007-2015 Joern Huxhorn
4 | *
5 | * This program is free software: you can redistribute it and/or modify
6 | * it under the terms of the GNU Lesser General Public License as published by
7 | * the Free Software Foundation, either version 3 of the License, or
8 | * (at your option) any later version.
9 | *
10 | * This program is distributed in the hope that it will be useful,
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 | * GNU Lesser General Public License for more details.
14 | *
15 | * You should have received a copy of the GNU Lesser General Public License
16 | * along with this program. If not, see .
17 | */
18 |
19 | /*
20 | * Copyright 2007-2015 Joern Huxhorn
21 | *
22 | * Licensed under the Apache License, Version 2.0 (the "License");
23 | * you may not use this file except in compliance with the License.
24 | * You may obtain a copy of the License at
25 | *
26 | * http://www.apache.org/licenses/LICENSE-2.0
27 | *
28 | * Unless required by applicable law or agreed to in writing, software
29 | * distributed under the License is distributed on an "AS IS" BASIS,
30 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
31 | * See the License for the specific language governing permissions and
32 | * limitations under the License.
33 | */
34 |
35 | package de.huxhorn.sulky.version;
36 |
37 | public interface ClassStatisticMapper
38 | {
39 | void evaluate(String source, String packageName, String className, char majorVersion);
40 | void reset();
41 | }
42 |
--------------------------------------------------------------------------------
/sulky-version/src/main/java/de/huxhorn/sulky/version/mappers/HighestVersionMapper.java:
--------------------------------------------------------------------------------
1 | /*
2 | * sulky-modules - several general-purpose modules.
3 | * Copyright (C) 2007-2018 Joern Huxhorn
4 | *
5 | * This program is free software: you can redistribute it and/or modify
6 | * it under the terms of the GNU Lesser General Public License as published by
7 | * the Free Software Foundation, either version 3 of the License, or
8 | * (at your option) any later version.
9 | *
10 | * This program is distributed in the hope that it will be useful,
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 | * GNU Lesser General Public License for more details.
14 | *
15 | * You should have received a copy of the GNU Lesser General Public License
16 | * along with this program. If not, see .
17 | */
18 |
19 | /*
20 | * Copyright 2007-2018 Joern Huxhorn
21 | *
22 | * Licensed under the Apache License, Version 2.0 (the "License");
23 | * you may not use this file except in compliance with the License.
24 | * You may obtain a copy of the License at
25 | *
26 | * http://www.apache.org/licenses/LICENSE-2.0
27 | *
28 | * Unless required by applicable law or agreed to in writing, software
29 | * distributed under the License is distributed on an "AS IS" BASIS,
30 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
31 | * See the License for the specific language governing permissions and
32 | * limitations under the License.
33 | */
34 |
35 | package de.huxhorn.sulky.version.mappers;
36 |
37 | import de.huxhorn.sulky.version.ClassFileVersion;
38 | import de.huxhorn.sulky.version.ClassStatisticMapper;
39 |
40 | @SuppressWarnings("PMD.AvoidThrowingNullPointerException") // target is Java 1.6
41 | public class HighestVersionMapper
42 | implements ClassStatisticMapper
43 | {
44 | private char highestVersionChar =0;
45 |
46 | public char getHighestVersionChar()
47 | {
48 | return highestVersionChar;
49 | }
50 |
51 | public ClassFileVersion getHighestVersion()
52 | {
53 | return ClassFileVersion.getByMajorVersionChar(highestVersionChar);
54 | }
55 |
56 | @Override
57 | public void evaluate(String source, String packageName, String className, char majorVersion)
58 | {
59 | if(source == null)
60 | {
61 | throw new NullPointerException("'source' must not be null!");
62 | }
63 | if(packageName == null)
64 | {
65 | throw new NullPointerException("'packageName' must not be null!");
66 | }
67 | if(className == null)
68 | {
69 | throw new NullPointerException("'className' must not be null!");
70 | }
71 |
72 | if(majorVersion > highestVersionChar)
73 | {
74 | highestVersionChar = majorVersion;
75 | }
76 | }
77 |
78 | @Override
79 | public void reset()
80 | {
81 | highestVersionChar = 0;
82 | }
83 | }
84 |
--------------------------------------------------------------------------------
/sulky-version/src/main/java/de/huxhorn/sulky/version/mappers/PackageVersionMapper.java:
--------------------------------------------------------------------------------
1 | /*
2 | * sulky-modules - several general-purpose modules.
3 | * Copyright (C) 2007-2018 Joern Huxhorn
4 | *
5 | * This program is free software: you can redistribute it and/or modify
6 | * it under the terms of the GNU Lesser General Public License as published by
7 | * the Free Software Foundation, either version 3 of the License, or
8 | * (at your option) any later version.
9 | *
10 | * This program is distributed in the hope that it will be useful,
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 | * GNU Lesser General Public License for more details.
14 | *
15 | * You should have received a copy of the GNU Lesser General Public License
16 | * along with this program. If not, see .
17 | */
18 |
19 | /*
20 | * Copyright 2007-2018 Joern Huxhorn
21 | *
22 | * Licensed under the Apache License, Version 2.0 (the "License");
23 | * you may not use this file except in compliance with the License.
24 | * You may obtain a copy of the License at
25 | *
26 | * http://www.apache.org/licenses/LICENSE-2.0
27 | *
28 | * Unless required by applicable law or agreed to in writing, software
29 | * distributed under the License is distributed on an "AS IS" BASIS,
30 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
31 | * See the License for the specific language governing permissions and
32 | * limitations under the License.
33 | */
34 |
35 | package de.huxhorn.sulky.version.mappers;
36 |
37 | import de.huxhorn.sulky.version.ClassStatisticMapper;
38 | import java.util.HashMap;
39 | import java.util.Map;
40 | import java.util.Set;
41 | import java.util.TreeSet;
42 |
43 | @SuppressWarnings("PMD.AvoidThrowingNullPointerException") // target is Java 1.6
44 | public class PackageVersionMapper
45 | implements ClassStatisticMapper
46 | {
47 | @SuppressWarnings("PMD.UseDiamondOperator") // target is Java 1.6
48 | private final Map> packageVersions=new HashMap>();
49 |
50 | public Map> getPackageVersions()
51 | {
52 | return packageVersions;
53 | }
54 |
55 | @Override
56 | @SuppressWarnings("PMD.UseDiamondOperator") // target is Java 1.6
57 | public void evaluate(String source, String packageName, String className, char majorVersion)
58 | {
59 | if(source == null)
60 | {
61 | throw new NullPointerException("'source' must not be null!");
62 | }
63 | if(packageName == null)
64 | {
65 | throw new NullPointerException("'packageName' must not be null!");
66 | }
67 | if(className == null)
68 | {
69 | throw new NullPointerException("'className' must not be null!");
70 | }
71 |
72 | Set versions = packageVersions.get(packageName);
73 | if(versions == null)
74 | {
75 | versions = new TreeSet();
76 | packageVersions.put(packageName, versions);
77 | }
78 | versions.add(majorVersion);
79 | }
80 |
81 | @Override
82 | public void reset()
83 | {
84 | packageVersions.clear();
85 | }
86 | }
87 |
--------------------------------------------------------------------------------
/sulky-version/src/main/java/de/huxhorn/sulky/version/mappers/SourceVersionMapper.java:
--------------------------------------------------------------------------------
1 | /*
2 | * sulky-modules - several general-purpose modules.
3 | * Copyright (C) 2007-2018 Joern Huxhorn
4 | *
5 | * This program is free software: you can redistribute it and/or modify
6 | * it under the terms of the GNU Lesser General Public License as published by
7 | * the Free Software Foundation, either version 3 of the License, or
8 | * (at your option) any later version.
9 | *
10 | * This program is distributed in the hope that it will be useful,
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 | * GNU Lesser General Public License for more details.
14 | *
15 | * You should have received a copy of the GNU Lesser General Public License
16 | * along with this program. If not, see .
17 | */
18 |
19 | /*
20 | * Copyright 2007-2018 Joern Huxhorn
21 | *
22 | * Licensed under the Apache License, Version 2.0 (the "License");
23 | * you may not use this file except in compliance with the License.
24 | * You may obtain a copy of the License at
25 | *
26 | * http://www.apache.org/licenses/LICENSE-2.0
27 | *
28 | * Unless required by applicable law or agreed to in writing, software
29 | * distributed under the License is distributed on an "AS IS" BASIS,
30 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
31 | * See the License for the specific language governing permissions and
32 | * limitations under the License.
33 | */
34 |
35 | package de.huxhorn.sulky.version.mappers;
36 |
37 | import de.huxhorn.sulky.version.ClassStatisticMapper;
38 | import java.util.HashMap;
39 | import java.util.Map;
40 | import java.util.Set;
41 | import java.util.TreeSet;
42 |
43 | @SuppressWarnings("PMD.AvoidThrowingNullPointerException") // target is Java 1.6
44 | public class SourceVersionMapper
45 | implements ClassStatisticMapper
46 | {
47 | @SuppressWarnings("PMD.UseDiamondOperator") // target is Java 1.6
48 | private final Map> sourceVersions = new HashMap>();
49 |
50 | public Map> getSourceVersions()
51 | {
52 | return sourceVersions;
53 | }
54 |
55 | @Override
56 | @SuppressWarnings("PMD.UseDiamondOperator") // target is Java 1.6
57 | public void evaluate(String source, String packageName, String className, char majorVersion)
58 | {
59 | if(source == null)
60 | {
61 | throw new NullPointerException("'source' must not be null!");
62 | }
63 | if(packageName == null)
64 | {
65 | throw new NullPointerException("'packageName' must not be null!");
66 | }
67 | if(className == null)
68 | {
69 | throw new NullPointerException("'className' must not be null!");
70 | }
71 |
72 | Set versions = sourceVersions.get(source);
73 | if(versions == null)
74 | {
75 | versions = new TreeSet();
76 | sourceVersions.put(source, versions);
77 | }
78 | versions.add(majorVersion);
79 | }
80 |
81 | @Override
82 | public void reset()
83 | {
84 | sourceVersions.clear();
85 | }
86 | }
87 |
--------------------------------------------------------------------------------
/sulky-version/src/test/groovy/de/huxhorn/sulky/version/ExceptionMainClass.java:
--------------------------------------------------------------------------------
1 | /*
2 | * sulky-modules - several general-purpose modules.
3 | * Copyright (C) 2007-2017 Joern Huxhorn
4 | *
5 | * This program is free software: you can redistribute it and/or modify
6 | * it under the terms of the GNU Lesser General Public License as published by
7 | * the Free Software Foundation, either version 3 of the License, or
8 | * (at your option) any later version.
9 | *
10 | * This program is distributed in the hope that it will be useful,
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 | * GNU Lesser General Public License for more details.
14 | *
15 | * You should have received a copy of the GNU Lesser General Public License
16 | * along with this program. If not, see .
17 | */
18 |
19 | /*
20 | * Copyright 2007-2017 Joern Huxhorn
21 | *
22 | * Licensed under the Apache License, Version 2.0 (the "License");
23 | * you may not use this file except in compliance with the License.
24 | * You may obtain a copy of the License at
25 | *
26 | * http://www.apache.org/licenses/LICENSE-2.0
27 | *
28 | * Unless required by applicable law or agreed to in writing, software
29 | * distributed under the License is distributed on an "AS IS" BASIS,
30 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
31 | * See the License for the specific language governing permissions and
32 | * limitations under the License.
33 | */
34 |
35 | package de.huxhorn.sulky.version;
36 |
37 | @SuppressWarnings("PMD.AvoidThrowingRawExceptionTypes")
38 | public final class ExceptionMainClass
39 | {
40 | private ExceptionMainClass() {}
41 | public static void main(String[] args)
42 | {
43 | throw new RuntimeException("Nope.");
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/sulky-version/src/test/groovy/de/huxhorn/sulky/version/MissingMainClass.java:
--------------------------------------------------------------------------------
1 | /*
2 | * sulky-modules - several general-purpose modules.
3 | * Copyright (C) 2007-2015 Joern Huxhorn
4 | *
5 | * This program is free software: you can redistribute it and/or modify
6 | * it under the terms of the GNU Lesser General Public License as published by
7 | * the Free Software Foundation, either version 3 of the License, or
8 | * (at your option) any later version.
9 | *
10 | * This program is distributed in the hope that it will be useful,
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 | * GNU Lesser General Public License for more details.
14 | *
15 | * You should have received a copy of the GNU Lesser General Public License
16 | * along with this program. If not, see .
17 | */
18 |
19 | /*
20 | * Copyright 2007-2015 Joern Huxhorn
21 | *
22 | * Licensed under the Apache License, Version 2.0 (the "License");
23 | * you may not use this file except in compliance with the License.
24 | * You may obtain a copy of the License at
25 | *
26 | * http://www.apache.org/licenses/LICENSE-2.0
27 | *
28 | * Unless required by applicable law or agreed to in writing, software
29 | * distributed under the License is distributed on an "AS IS" BASIS,
30 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
31 | * See the License for the specific language governing permissions and
32 | * limitations under the License.
33 | */
34 |
35 | package de.huxhorn.sulky.version;
36 |
37 | public class MissingMainClass
38 | {
39 | }
40 |
--------------------------------------------------------------------------------
/sulky-version/src/test/groovy/de/huxhorn/sulky/version/NonPublicMainClass.java:
--------------------------------------------------------------------------------
1 | /*
2 | * sulky-modules - several general-purpose modules.
3 | * Copyright (C) 2007-2017 Joern Huxhorn
4 | *
5 | * This program is free software: you can redistribute it and/or modify
6 | * it under the terms of the GNU Lesser General Public License as published by
7 | * the Free Software Foundation, either version 3 of the License, or
8 | * (at your option) any later version.
9 | *
10 | * This program is distributed in the hope that it will be useful,
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 | * GNU Lesser General Public License for more details.
14 | *
15 | * You should have received a copy of the GNU Lesser General Public License
16 | * along with this program. If not, see .
17 | */
18 |
19 | /*
20 | * Copyright 2007-2017 Joern Huxhorn
21 | *
22 | * Licensed under the Apache License, Version 2.0 (the "License");
23 | * you may not use this file except in compliance with the License.
24 | * You may obtain a copy of the License at
25 | *
26 | * http://www.apache.org/licenses/LICENSE-2.0
27 | *
28 | * Unless required by applicable law or agreed to in writing, software
29 | * distributed under the License is distributed on an "AS IS" BASIS,
30 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
31 | * See the License for the specific language governing permissions and
32 | * limitations under the License.
33 | */
34 |
35 | package de.huxhorn.sulky.version;
36 |
37 | public class NonPublicMainClass
38 | {
39 | void main(String[] args)
40 | {
41 | // just testing
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/sulky-version/src/test/groovy/de/huxhorn/sulky/version/TestMainClass.java:
--------------------------------------------------------------------------------
1 | /*
2 | * sulky-modules - several general-purpose modules.
3 | * Copyright (C) 2007-2017 Joern Huxhorn
4 | *
5 | * This program is free software: you can redistribute it and/or modify
6 | * it under the terms of the GNU Lesser General Public License as published by
7 | * the Free Software Foundation, either version 3 of the License, or
8 | * (at your option) any later version.
9 | *
10 | * This program is distributed in the hope that it will be useful,
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 | * GNU Lesser General Public License for more details.
14 | *
15 | * You should have received a copy of the GNU Lesser General Public License
16 | * along with this program. If not, see .
17 | */
18 |
19 | /*
20 | * Copyright 2007-2017 Joern Huxhorn
21 | *
22 | * Licensed under the Apache License, Version 2.0 (the "License");
23 | * you may not use this file except in compliance with the License.
24 | * You may obtain a copy of the License at
25 | *
26 | * http://www.apache.org/licenses/LICENSE-2.0
27 | *
28 | * Unless required by applicable law or agreed to in writing, software
29 | * distributed under the License is distributed on an "AS IS" BASIS,
30 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
31 | * See the License for the specific language governing permissions and
32 | * limitations under the License.
33 | */
34 |
35 | package de.huxhorn.sulky.version;
36 |
37 | public final class TestMainClass
38 | {
39 | private TestMainClass() {}
40 | public static void main(String[] args)
41 | {
42 | // just testing
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/sulky-version/src/test/groovy/de/huxhorn/sulky/version/mappers/AbstractMapperSpec.groovy:
--------------------------------------------------------------------------------
1 | /*
2 | * sulky-modules - several general-purpose modules.
3 | * Copyright (C) 2007-2015 Joern Huxhorn
4 | *
5 | * This program is free software: you can redistribute it and/or modify
6 | * it under the terms of the GNU Lesser General Public License as published by
7 | * the Free Software Foundation, either version 3 of the License, or
8 | * (at your option) any later version.
9 | *
10 | * This program is distributed in the hope that it will be useful,
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 | * GNU Lesser General Public License for more details.
14 | *
15 | * You should have received a copy of the GNU Lesser General Public License
16 | * along with this program. If not, see .
17 | */
18 |
19 | /*
20 | * Copyright 2007-2015 Joern Huxhorn
21 | *
22 | * Licensed under the Apache License, Version 2.0 (the "License");
23 | * you may not use this file except in compliance with the License.
24 | * You may obtain a copy of the License at
25 | *
26 | * http://www.apache.org/licenses/LICENSE-2.0
27 | *
28 | * Unless required by applicable law or agreed to in writing, software
29 | * distributed under the License is distributed on an "AS IS" BASIS,
30 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
31 | * See the License for the specific language governing permissions and
32 | * limitations under the License.
33 | */
34 |
35 | package de.huxhorn.sulky.version.mappers
36 |
37 | import de.huxhorn.sulky.version.ClassStatisticMapper
38 | import spock.lang.Specification
39 |
40 | abstract class AbstractMapperSpec extends Specification {
41 | abstract ClassStatisticMapper createInstance()
42 |
43 | def "null source throws correct exception."() {
44 | when:
45 | ClassStatisticMapper instance = createInstance()
46 | instance.evaluate(null, 'packageName', 'className', 0x31 as char)
47 |
48 | then:
49 | NullPointerException ex = thrown()
50 | ex.message == "'source' must not be null!"
51 | }
52 |
53 | def "null packageName throws correct exception."() {
54 | when:
55 | ClassStatisticMapper instance = createInstance()
56 | instance.evaluate('source', null, 'className', 0x31 as char)
57 |
58 | then:
59 | NullPointerException ex = thrown()
60 | ex.message == "'packageName' must not be null!"
61 | }
62 |
63 | def "null className throws correct exception."() {
64 | when:
65 | ClassStatisticMapper instance = createInstance()
66 | instance.evaluate('source', 'packageName', null, 0x31 as char)
67 |
68 | then:
69 | NullPointerException ex = thrown()
70 | ex.message == "'className' must not be null!"
71 | }
72 | }
73 |
--------------------------------------------------------------------------------
/sulky-version/src/test/resources/classNotFound.properties:
--------------------------------------------------------------------------------
1 | main.class=de.huxhorn.sulky.version.ClassNotFound
2 | java.version=1.8
3 | system.exit=false
4 | show.error.dialog=false
5 | # unknown.version.fail=false
6 |
--------------------------------------------------------------------------------
/sulky-version/src/test/resources/exceptionMain.properties:
--------------------------------------------------------------------------------
1 | main.class=de.huxhorn.sulky.version.ExceptionMainClass
2 | java.version=1.8
3 | system.exit=false
4 | show.error.dialog=false
5 | # unknown.version.fail=false
6 |
--------------------------------------------------------------------------------
/sulky-version/src/test/resources/foo.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/huxi/sulky/27c8d809f2e3af6eafa9c7324f158cd9b482b351/sulky-version/src/test/resources/foo.jar
--------------------------------------------------------------------------------
/sulky-version/src/test/resources/invalidJavaVersion.properties:
--------------------------------------------------------------------------------
1 | main.class=de.huxhorn.sulky.version.TestMainClass
2 | java.version=1.foo
3 | system.exit=false
4 | show.error.dialog=false
5 | # unknown.version.fail=false
6 |
--------------------------------------------------------------------------------
/sulky-version/src/test/resources/main.properties:
--------------------------------------------------------------------------------
1 | main.class=de.huxhorn.sulky.version.TestMainClass
2 | java.version=1.8
3 | system.exit=false
4 | show.error.dialog=false
5 | # unknown.version.fail=false
6 |
--------------------------------------------------------------------------------
/sulky-version/src/test/resources/malformed.properties:
--------------------------------------------------------------------------------
1 | main.class=de.huxhorn.sulky.version.NonPublicMainClass
2 | java.version=1.8
3 | system.exit=false
4 | show.error.dialog=false
5 | malformed=\uxyz
6 | # unknown.version.fail=false
7 |
--------------------------------------------------------------------------------
/sulky-version/src/test/resources/missingJavaVersion.properties:
--------------------------------------------------------------------------------
1 | main.class=de.huxhorn.sulky.version.TestMainClass
2 | system.exit=false
3 | show.error.dialog=false
4 | # unknown.version.fail=false
5 |
--------------------------------------------------------------------------------
/sulky-version/src/test/resources/missingMain.properties:
--------------------------------------------------------------------------------
1 | main.class=de.huxhorn.sulky.version.MissingMainClass
2 | java.version=1.8
3 | system.exit=false
4 | show.error.dialog=false
5 | # unknown.version.fail=false
6 |
--------------------------------------------------------------------------------
/sulky-version/src/test/resources/missingMainClass.properties:
--------------------------------------------------------------------------------
1 | java.version=1.8
2 | system.exit=false
3 | show.error.dialog=false
4 | # unknown.version.fail=false
5 |
--------------------------------------------------------------------------------
/sulky-version/src/test/resources/nonPublicMain.properties:
--------------------------------------------------------------------------------
1 | main.class=de.huxhorn.sulky.version.NonPublicMainClass
2 | java.version=1.8
3 | system.exit=false
4 | show.error.dialog=false
5 | # unknown.version.fail=false
6 |
--------------------------------------------------------------------------------
/sulky-version/src/test/resources/slf4j-api-1.7.10.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/huxi/sulky/27c8d809f2e3af6eafa9c7324f158cd9b482b351/sulky-version/src/test/resources/slf4j-api-1.7.10.jar
--------------------------------------------------------------------------------
/sulky-version/src/test/resources/slf4j-api-1.7.9.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/huxi/sulky/27c8d809f2e3af6eafa9c7324f158cd9b482b351/sulky-version/src/test/resources/slf4j-api-1.7.9.jar
--------------------------------------------------------------------------------
/sulky-version/src/test/resources/versionMismatch.properties:
--------------------------------------------------------------------------------
1 | main.class=de.huxhorn.sulky.version.TestMainClass
2 | java.version=99.8
3 | system.exit=false
4 | show.error.dialog=false
5 | # unknown.version.fail=false
6 |
--------------------------------------------------------------------------------