Merge branch 'develop'
This commit is contained in:
commit
e557e2c8d4
|
@ -1,5 +1,6 @@
|
||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
<launchConfiguration type="org.eclipse.m2e.Maven2LaunchConfigurationType">
|
<launchConfiguration type="org.eclipse.m2e.Maven2LaunchConfigurationType">
|
||||||
|
<intAttribute key="M2_COLORS" value="0"/>
|
||||||
<booleanAttribute key="M2_DEBUG_OUTPUT" value="false"/>
|
<booleanAttribute key="M2_DEBUG_OUTPUT" value="false"/>
|
||||||
<stringAttribute key="M2_GOALS" value="package"/>
|
<stringAttribute key="M2_GOALS" value="package"/>
|
||||||
<booleanAttribute key="M2_NON_RECURSIVE" value="false"/>
|
<booleanAttribute key="M2_NON_RECURSIVE" value="false"/>
|
||||||
|
@ -12,10 +13,11 @@
|
||||||
<booleanAttribute key="M2_UPDATE_SNAPSHOTS" value="false"/>
|
<booleanAttribute key="M2_UPDATE_SNAPSHOTS" value="false"/>
|
||||||
<stringAttribute key="M2_USER_SETTINGS" value=""/>
|
<stringAttribute key="M2_USER_SETTINGS" value=""/>
|
||||||
<booleanAttribute key="M2_WORKSPACE_RESOLUTION" value="true"/>
|
<booleanAttribute key="M2_WORKSPACE_RESOLUTION" value="true"/>
|
||||||
|
<booleanAttribute key="org.eclipse.debug.core.ATTR_FORCE_SYSTEM_CONSOLE_ENCODING" value="false"/>
|
||||||
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_ATTR_USE_ARGFILE" value="false"/>
|
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_ATTR_USE_ARGFILE" value="false"/>
|
||||||
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_SHOW_CODEDETAILS_IN_EXCEPTION_MESSAGES" value="true"/>
|
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_SHOW_CODEDETAILS_IN_EXCEPTION_MESSAGES" value="true"/>
|
||||||
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_USE_CLASSPATH_ONLY_JAR" value="false"/>
|
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_USE_CLASSPATH_ONLY_JAR" value="false"/>
|
||||||
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_USE_START_ON_FIRST_THREAD" value="true"/>
|
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_USE_START_ON_FIRST_THREAD" value="true"/>
|
||||||
<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-11/"/>
|
<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-17/"/>
|
||||||
<stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="${project_loc:com.minres.scviewer.parent}"/>
|
<stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="${project_loc:com.minres.scviewer.parent}"/>
|
||||||
</launchConfiguration>
|
</launchConfiguration>
|
||||||
|
|
|
@ -149,25 +149,28 @@ public class BitVector implements IEvent {
|
||||||
int resWidth = (width - 1) / 4 + 1;
|
int resWidth = (width - 1) / 4 + 1;
|
||||||
char[] value = getValue();
|
char[] value = getValue();
|
||||||
char[] res = new char[resWidth];
|
char[] res = new char[resWidth];
|
||||||
|
int start_idx = (value.length-1)%4;
|
||||||
for (int i = resWidth - 1; i >= 0; i--) {
|
for (int i = resWidth - 1; i >= 0; i--) {
|
||||||
int digit = 0;
|
int digit = 0;
|
||||||
for (int j = 3; j >= 0; j--) {
|
for (int j = start_idx, jj=0; j >= 0; j--, jj++) {
|
||||||
if ((4 * i + j) < value.length) {
|
if ((4 * i + j) < value.length) {
|
||||||
BitValue val = BitValue.fromChar(value[4 * i + j]);
|
BitValue val = BitValue.fromChar(value[4 * i + jj]);
|
||||||
switch (val) {
|
switch (val) {
|
||||||
case X:
|
case X:
|
||||||
case Z:
|
case Z:
|
||||||
res[i] = val.toChar();
|
res[i] = val.toChar();
|
||||||
continue;
|
continue;
|
||||||
case ONE:
|
case ONE:
|
||||||
digit += 1 << (3 - j);
|
digit += 1 << j;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
res[i] = Character.forDigit(digit, 16); // ((digit < 10) ? '0' + digit : 'a' + digit -10)
|
if(res[i]==0)
|
||||||
|
res[i] = Character.forDigit(digit, 16); // ((digit < 10) ? '0' + digit : 'a' + digit -10)
|
||||||
|
start_idx=3;
|
||||||
}
|
}
|
||||||
int idx=0;
|
int idx=0;
|
||||||
while(res[idx]=='0' && idx<(res.length-1)) idx++;
|
while(res[idx]=='0' && idx<(res.length-1)) idx++;
|
||||||
|
|
|
@ -1,30 +1,9 @@
|
||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<project name="project">
|
<project name="project">
|
||||||
|
|
||||||
<target name="getMajorMinorVersion">
|
<!-- site.label The name/title/label of the created composite site unqualifiedVersion
|
||||||
<script language="javascript">
|
The version without any qualifier replacement buildQualifier The build qualifier -->
|
||||||
<![CDATA[
|
<target name="compute.child.repository.data">
|
||||||
|
|
||||||
// getting the value
|
|
||||||
buildnumber = project.getProperty("unqualifiedVersion");
|
|
||||||
index = buildnumber.lastIndexOf(".");
|
|
||||||
counter = buildnumber.substring(0, index);
|
|
||||||
project.setProperty("majorMinorVersion",counter);
|
|
||||||
|
|
||||||
]]>
|
|
||||||
</script>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="test_getMajorMinor" depends="getMajorMinorVersion">
|
|
||||||
<echo message="majorMinorVersion: ${majorMinorVersion}"/>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
site.label The name/title/label of the created composite site
|
|
||||||
unqualifiedVersion The version without any qualifier replacement
|
|
||||||
buildQualifier The build qualifier
|
|
||||||
-->
|
|
||||||
<target name="compute.child.repository.data" depends="getMajorMinorVersion">
|
|
||||||
<property name="full.version" value="${unqualifiedVersion}" />
|
<property name="full.version" value="${unqualifiedVersion}" />
|
||||||
|
|
||||||
<property name="software.download.area" location="${user.home}/p2.repositories" />
|
<property name="software.download.area" location="${user.home}/p2.repositories" />
|
||||||
|
|
|
@ -64,7 +64,7 @@
|
||||||
<version>${tycho-version}</version>
|
<version>${tycho-version}</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<!-- IMPORTANT: DO NOT split the arg line -->
|
<!-- IMPORTANT: DO NOT split the arg line -->
|
||||||
<appArgLine>-application org.eclipse.ant.core.antRunner -buildfile packaging-p2-composite.ant p2.composite.add -Dsite.label="SCViewer Software Repository" -Dproject.build.directory=${project.build.directory} -DunqualifiedVersion=${unqualifiedVersion} -Dsoftware.download.area="${software.download.area}/SCViewer-GHP/repository"</appArgLine>
|
<appArgLine>-application org.eclipse.ant.core.antRunner -buildfile packaging-p2-composite.ant p2.composite.add -Dsite.label="SCViewer Software Repository" -Dproject.build.directory=${project.build.directory} -DmajorMinorVersion=${parsedVersion.majorVersion}.${parsedVersion.minorVersion} -DunqualifiedVersion=${unqualifiedVersion} -Dsoftware.download.area="${software.download.area}/SCViewer-GHP/repository"</appArgLine>
|
||||||
<repositories>
|
<repositories>
|
||||||
<repository>
|
<repository>
|
||||||
<id>2021-12</id>
|
<id>2021-12</id>
|
||||||
|
|
Loading…
Reference in New Issue