Skip to content

Commit cdd33bc

Browse files
author
Sean Foley
committed
sync with v5 branch
1 parent 5423ba8 commit cdd33bc

13 files changed

Lines changed: 266 additions & 10 deletions

‎IPAddress/IP Address test fast performance dist.launch‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
77
<listEntry value="1"/>
88
</listAttribute>
9+
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_ATTR_USE_ARGFILE" value="false"/>
10+
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_USE_CLASSPATH_ONLY_JAR" value="false"/>
911
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_USE_START_ON_FIRST_THREAD" value="true"/>
1012
<listAttribute key="org.eclipse.jdt.launching.CLASSPATH">
1113
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#10;&lt;runtimeClasspathEntry containerPath=&quot;org.eclipse.jdt.launching.JRE_CONTAINER&quot; javaProject=&quot;IPAddress&quot; path=&quot;5&quot; type=&quot;4&quot;/&gt;&#10;"/>
@@ -15,6 +17,7 @@
1517
<listAttribute key="org.eclipse.jdt.launching.MODULEPATH">
1618
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/IPAddress/dist/IPAddress.jar&quot; path=&quot;4&quot; type=&quot;2&quot;/&gt;&#10;"/>
1719
</listAttribute>
20+
<stringAttribute key="org.eclipse.jdt.launching.MODULE_NAME" value="inet.ipaddr"/>
1821
<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="fast performance"/>
1922
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="IPAddress"/>
2023
</launchConfiguration>

‎IPAddress/IP Address test fast performance.launch‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,11 @@
66
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
77
<listEntry value="1"/>
88
</listAttribute>
9+
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_ATTR_USE_ARGFILE" value="false"/>
10+
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_USE_CLASSPATH_ONLY_JAR" value="false"/>
911
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_USE_START_ON_FIRST_THREAD" value="true"/>
1012
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="inet.ipaddr.test.TestRunner"/>
13+
<stringAttribute key="org.eclipse.jdt.launching.MODULE_NAME" value="inet.ipaddr"/>
1114
<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="fast performance"/>
1215
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="IPAddress"/>
1316
<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Xmx2g"/>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
22
<launchConfiguration type="org.eclipse.jdt.launching.localJavaApplication">
3+
<booleanAttribute key="org.eclipse.debug.core.ATTR_FORCE_SYSTEM_CONSOLE_ENCODING" value="false"/>
34
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
45
<listEntry value="/IPAddress/src/inet.ipaddr/inet/ipaddr/test/TestRunner.java"/>
56
</listAttribute>
67
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
78
<listEntry value="1"/>
89
</listAttribute>
10+
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_ATTR_USE_ARGFILE" value="false"/>
11+
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_SHOW_CODEDETAILS_IN_EXCEPTION_MESSAGES" value="true"/>
12+
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_USE_CLASSPATH_ONLY_JAR" value="false"/>
913
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_USE_START_ON_FIRST_THREAD" value="true"/>
1014
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="inet.ipaddr.test.TestRunner"/>
15+
<stringAttribute key="org.eclipse.jdt.launching.MODULE_NAME" value="inet.ipaddr"/>
1116
<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="limited fast"/>
1217
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="IPAddress"/>
1318
</launchConfiguration>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
22
<launchConfiguration type="org.eclipse.jdt.launching.localJavaApplication">
3+
<booleanAttribute key="org.eclipse.debug.core.ATTR_FORCE_SYSTEM_CONSOLE_ENCODING" value="false"/>
34
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
45
<listEntry value="/IPAddress/src/inet.ipaddr/inet/ipaddr/test/TestRunner.java"/>
56
</listAttribute>
67
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
78
<listEntry value="1"/>
89
</listAttribute>
10+
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_ATTR_USE_ARGFILE" value="false"/>
11+
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_SHOW_CODEDETAILS_IN_EXCEPTION_MESSAGES" value="true"/>
12+
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_USE_CLASSPATH_ONLY_JAR" value="false"/>
913
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_USE_START_ON_FIRST_THREAD" value="true"/>
1014
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="inet.ipaddr.test.TestRunner"/>
15+
<stringAttribute key="org.eclipse.jdt.launching.MODULE_NAME" value="inet.ipaddr"/>
1116
<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="limited"/>
1217
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="IPAddress"/>
1318
</launchConfiguration>

‎IPAddress/IP Address test slow.launch‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@
66
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
77
<listEntry value="1"/>
88
</listAttribute>
9+
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_ATTR_USE_ARGFILE" value="false"/>
910
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_USE_CLASSPATH_ONLY_JAR" value="false"/>
1011
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_USE_START_ON_FIRST_THREAD" value="true"/>
1112
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="inet.ipaddr.test.TestRunner"/>
13+
<stringAttribute key="org.eclipse.jdt.launching.MODULE_NAME" value="inet.ipaddr"/>
1214
<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-Xmx1024m"/>
1315
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="IPAddress"/>
1416
</launchConfiguration>

‎IPAddress/build.xml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<project name="Create IP Address API" default="run" basedir=".">
22
<description>Create IP address jar</description>
3-
<property name="version" value="5.3.4"/>
3+
<property name="version" value="5.4.1"/>
44

55
<property name="rootOffset" value="."/>
66
<property name="rootdistdir" location="${rootOffset}/dist"/>

‎IPAddress/maintenance_instructions.txt‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,13 @@ NOTE: Currently we've had to separate javadoc creation from the creation of dist
6666
see notes in build.xml for the reason.
6767
You need the project at compile level 9 with a jre >= 9 (last time used 11).
6868
a. Create the javadoc first using Java 8, altering the jdk used by the build.xml ant build run config to be version 8.
69+
Make sure you choose a non-plugin JDK. It can be a Mac OS VM if you want. It needs to use the tools.jar for the doclet.
6970
b. Then switch over the job to jre >= 9. Then ensure your module-info.java is uncommented.
7071
Then create the dist jar with java 9 in the same JVM as Eclipse, otherwise ant won't work.
7172

72-
2. Use build.xml to first "create javadoc"
73+
2. Use build.xml to first "create javadoc" running in separate Java 8 JRE. If any javadoc errors, fix them and retry.
7374

74-
3. Use build.xml to "create dist jar"
75+
3. Use build.xml to "create dist jar" running in jre >= 9 same as workspace.
7576

7677
4. Replace the checked-in file IPAddress.jar with the dist jar created.
7778

@@ -115,3 +116,4 @@ It may take about 10 minutes.
115116

116117

117118

119+

‎IPAddress/src/inet.ipaddr/inet/ipaddr/format/standard/IPAddressBitsDivision.java‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
package inet.ipaddr.format.standard;
2-
3-
import inet.ipaddr.AddressValueException;
4-
import inet.ipaddr.IPAddressNetwork;
5-
import inet.ipaddr.format.AddressDivisionBase;
6-
71
/*
82
* Copyright 2016-2018 Sean C Foley
93
*
@@ -22,6 +16,12 @@
2216
* limitations under the License.
2317
*/
2418

19+
package inet.ipaddr.format.standard;
20+
21+
import inet.ipaddr.AddressValueException;
22+
import inet.ipaddr.IPAddressNetwork;
23+
import inet.ipaddr.format.AddressDivisionBase;
24+
2525
public class IPAddressBitsDivision extends IPAddressDivision {
2626

2727
private static final long serialVersionUID = 4L;

‎IPAddress/src/inet.ipaddr/inet/ipaddr/format/util/AddedTree.java‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
/*
2+
* Copyright 2022 Sean C Foley
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
* or at
10+
* https://github.com/seancfoley/IPAddress/blob/master/LICENSE
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*/
18+
119
package inet.ipaddr.format.util;
220

321
import java.util.List;

‎IPAddress/src/inet.ipaddr/inet/ipaddr/format/util/AddedTreeBase.java‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
/*
2+
* Copyright 2022 Sean C Foley
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
* or at
10+
* https://github.com/seancfoley/IPAddress/blob/master/LICENSE
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*/
18+
119
package inet.ipaddr.format.util;
220

321
import inet.ipaddr.Address;

0 commit comments

Comments
 (0)