Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Buckminster » Buckminster + Ant headless build on windows command prompt(Buckminster + Ant headless build on windows command prompt)
Buckminster + Ant headless build on windows command prompt [message #1786575] Mon, 07 May 2018 15:28 Go to next message
Megha Bansal is currently offline Megha BansalFriend
Messages: 6
Registered: May 2018
Junior Member
I have created simple e(fx)clipse e4 application and in that I am building using Buckminster and Ant. When I am running from Eclipse. It is runnig fine. But could not able to run from command prompt headlessly.

Already installed director , headless buckminster.

command prompt error:
<project name="Product packaging" default = "p2.product">

<target name="create.product">
<property name="product.install.directory" location="$a" />
<delete dir="${product.install.directory}" includeemptydirs="true" failonerror="false" />
<mkdir dir="${product.install.directory}" />
<buckminster.valuepath value="${fs:repositories}" id="repositories.valuepath" />
<pathconvert pathsep="," targetos="unix" property="product.repositories" refid="repositories.valuepath">
<map from="" to="file:/" />
</pathconvert>
<echoproperties />

<echo message="Repositories: ${product.repositories}" />
<echo message="Install Dir : ${product.install.directory}" />
<p2.director
destination="${product.install.directory}"
metadataRepository="${product.repositories}"
artifactRepository="${product.repositories}"
profile="${profile}"
arch="${target.arch}"
os="${target.os}"
ws="${target.ws}"
roaming="true"
extraarguments="-profileProperties org.eclipse.update.install.features=true">
<iu id="${iu}" />
</p2.director>

</target>
<target name="p2.product" depends = "create.product">
</target>
<target name="create.target.platform.repository">
<buckminster.targetPlatformLocation property="target.platform.location" />
<property name="target.platform.repository" value="file:/${sp:output}" />
<property name="repository.name" value="Target Platform Repository" />
<p2.publish.featuresAndBundles
repository="${target.platform.repository}"
repositoryName="${repository.name}"
source="${target.platform.location}"
publishArtifacts="true" />
<buckminster.publishJRE metadataRepository="${target.platform.repository}" publishArtifacts="false" />
</target>
</project>



buckminster.cspex
<?xml version="1.0" encoding="UTF-8"?>
<cspecExtension xmlns:com="http://www.eclipse.org/buckminster/Common-1.0"
xmlns="http://www.eclipse.org/buckminster/CSpec-1.0">

<actions>
<public name="create.site" actor="ant">
<actorProperties>
<property key="buildFile" value="build/p2site.xml" />
<property key="targets" value="modify.p2.site" />
</actorProperties>
<prerequisites alias="repositories">
<attribute name="site.p2" />
</prerequisites>
<products alias="destination" base="${buckminster.output}">
<path path="site.p2/" />
</products>
</public>
<public name="create.product" actor="ant">
<actorProperties>
<property key="buildFile" value="build/build.xml" />
<property key="targets" value="create.product" />
</actorProperties>
<properties>
<property key="profile" value="Mathapp" />
<property key="iu" value="todo.mathexampl.app.product" />
</properties>
<prerequisites alias="repositories">
<attribute name="site.p2" />
<attribute name="site.tp" />
</prerequisites>
<products alias="destination" base="${buckminster.output}">
<path path="Mathapp.${target.ws}.${target.os}.${target.arch}/" />
</products>
</public>
<public name="create.product.zip" actor="ant">
<actorProperties>
<property key="buildFileId" value="buckminster.pdetasks" />
<property key="targets" value="create.zip" />
</actorProperties>
<prerequisites alias="action.requirements">
<attribute name="create.product" />
</prerequisites>
<products alias="action.output" base="${buckminster.output}">
<path path="Mathapp.${target.ws}.${target.os}.${target.arch}.zip" />
</products>
</public>

<public name="site.tp" actor="ant">
<actorProperties>
<property key="buildFile" value="build/build.xml" />
<property key="targets" value="create.target.platform.repository" />
</actorProperties>
<properties>
<property key="repository.name" value="Math App Example" />
</properties>
<products alias="output" base="${buckminster.output}/site.tp/" />
</public>
</actions>

</cspecExtension>



build.xml
<project name="Product packaging" default = "p2.product">

<target name="create.product">
<property name="product.install.directory" location="$a" />
<delete dir="${product.install.directory}" includeemptydirs="true" failonerror="false" />
<mkdir dir="${product.install.directory}" />
<buckminster.valuepath value="${fs:repositories}" id="repositories.valuepath" />
<pathconvert pathsep="," targetos="unix" property="product.repositories" refid="repositories.valuepath">
<map from="" to="file:/" />
</pathconvert>
<echoproperties />

<echo message="Repositories: ${product.repositories}" />
<echo message="Install Dir : ${product.install.directory}" />
<p2.director
destination="${product.install.directory}"
metadataRepository="${product.repositories}"
artifactRepository="${product.repositories}"
profile="${profile}"
arch="${target.arch}"
os="${target.os}"
ws="${target.ws}"
roaming="true"
extraarguments="-profileProperties org.eclipse.update.install.features=true">
<iu id="${iu}" />
</p2.director>

</target>
<target name="p2.product" depends = "create.product">
</target>
<target name="create.target.platform.repository">
<buckminster.targetPlatformLocation property="target.platform.location" />
<property name="target.platform.repository" value="file:/${sp:output}" />
<property name="repository.name" value="Target Platform Repository" />
<p2.publish.featuresAndBundles
repository="${target.platform.repository}"
repositoryName="${repository.name}"
source="${target.platform.location}"
publishArtifacts="true" />
<buckminster.publishJRE metadataRepository="${target.platform.repository}" publishArtifacts="false" />
</target>
</project>

Any help would be greatly appreciated
Re: Buckminster + Ant headless build on windows command prompt [message #1786917 is a reply to message #1786575] Tue, 15 May 2018 14:44 Go to previous messageGo to next message
Megha Bansal is currently offline Megha BansalFriend
Messages: 6
Registered: May 2018
Junior Member
I have already come so long in buckminster headless build.Yet I dont have this problem. Thanks you.
Re: Buckminster + Ant headless build on windows command prompt [message #1786918 is a reply to message #1786575] Tue, 15 May 2018 14:45 Go to previous message
Megha Bansal is currently offline Megha BansalFriend
Messages: 6
Registered: May 2018
Junior Member
I have already come so long in buckminster headless build.Yet I dont have this problem. Thanks you.
Previous Topic:P2 authentication upon target platform import
Next Topic:buckminster headless build
Goto Forum:
  


Current Time: Fri Mar 29 00:06:38 GMT 2024

Powered by FUDForum. Page generated in 0.03751 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top