fixes packaging to work without JS
This commit is contained in:
@ -1,30 +1,9 @@
|
||||
<?xml version="1.0"?>
|
||||
<project name="project">
|
||||
|
||||
<target name="getMajorMinorVersion">
|
||||
<script language="javascript">
|
||||
<![CDATA[
|
||||
|
||||
// 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">
|
||||
<!-- 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">
|
||||
<property name="full.version" value="${unqualifiedVersion}" />
|
||||
|
||||
<property name="software.download.area" location="${user.home}/p2.repositories" />
|
||||
|
@ -64,7 +64,7 @@
|
||||
<version>${tycho-version}</version>
|
||||
<configuration>
|
||||
<!-- 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>
|
||||
<repository>
|
||||
<id>2021-12</id>
|
||||
|
Reference in New Issue
Block a user