Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ProB Rodin Plugin
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
general
stups
ProB Rodin Plugin
Commits
5324f639
Commit
5324f639
authored
2 years ago
by
dgelessus
Browse files
Options
Downloads
Patches
Plain Diff
Remove unused tycho_build.gradle code for creating a product
parent
c29c3f58
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
tycho_build.gradle
+0
-109
0 additions, 109 deletions
tycho_build.gradle
with
0 additions
and
109 deletions
tycho_build.gradle
+
0
−
109
View file @
5324f639
...
@@ -61,12 +61,6 @@ try {
...
@@ -61,12 +61,6 @@ try {
project
.
ext
.
parentID
=
groupID
+
".parent"
project
.
ext
.
parentID
=
groupID
+
".parent"
}
}
try
{
buildProduct
=
buildProduct
}
catch
(
MissingPropertyException
e
)
{
project
.
ext
.
buildProduct
=
false
}
// returns the name of a subproject listed in the settings.gradle file
// returns the name of a subproject listed in the settings.gradle file
def
projects
(
int
i
)
{
def
projects
(
int
i
)
{
...
@@ -618,47 +612,9 @@ def reposi() {"""\
...
@@ -618,47 +612,9 @@ def reposi() {"""\
<artifactId>${repositoryName}</artifactId>
<artifactId>${repositoryName}</artifactId>
<version>1.0.0.qualifier</version>
<version>1.0.0.qualifier</version>
<packaging>eclipse-repository</packaging>
<packaging>eclipse-repository</packaging>
${reposiBuildStep()}
</project>
</project>
"""
}
"""
}
def
String
reposiBuildStep
(){
if
(
buildProduct
!=
false
)
{
return
"""
<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-p2-director-plugin</artifactId>
<version>\${tycho-version}</version>
<executions>
<execution>
<!-- (optional) install the product for all configured os/ws/arch environments using p2 director -->
<id>materialize-products</id>
<goals>
<goal>materialize-products</goal>
</goals>
</execution>
<execution>
<!-- (optional) create product zips (one per os/ws/arch) -->
<id>archive-products</id>
<goals>
<goal>archive-products</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
"""
}
else
{
return
"\n"
}
}
// creates a category in
// creates a category in
def
categoryHead
()
{
"""\
def
categoryHead
()
{
"""\
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
...
@@ -704,71 +660,6 @@ def feature(artifactId, versionNumber) {"""\
...
@@ -704,71 +660,6 @@ def feature(artifactId, versionNumber) {"""\
"""
}
"""
}
// end of feature pom
// end of feature pom
// -------- In case you want to generate the product definition ------ //
/*
def productXML(){
"""\
<?xml version="1.0" encoding="UTF-8"?>
<?pde version="3.5"?>
<product name="${groupID}.product" uid="${groupID}" id="${groupID}.product" application="${product}" version="1.0.0.qualifier" useFeatures="true" includeLaunchers="true">
<configIni use="default">
</configIni>
<launcherArgs>
<programArgs>-consoleLog</programArgs>
<vmArgs>-Xdock:icon=../Resources/Eclipse.icns -XstartOnFirstThread -Dorg.eclipse.swt.internal.carbon.smallFonts -Xdock:icon=../Resources/Eclipse.icns -XstartOnFirstThread -Dorg.eclipse.swt.internal.carbon.smallFonts -Xms40m -Xmx512m -Xdock:icon=../Resources/Eclipse.icns -XstartOnFirstThread -Dorg.eclipse.swt.internal.carbon.smallFonts</vmArgs>
<vmArgsMac>-XstartOnFirstThread -Dorg.eclipse.swt.internal.carbon.smallFonts</vmArgsMac>
</launcherArgs>
<plugins>
</plugins>
<features>
""" + listProductFeature() + """
<feature id="org.eclipse.rcp" version="3.7.2.v20120120-1424-9DB5FmnFq5JCf1UA38R-kz0S0272"/>
</features>
<configurations>
<plugin id="org.eclipse.core.runtime" autoStart="true" startLevel="0" />
<plugin id="org.eclipse.equinox.common" autoStart="true" startLevel="2" />
<plugin id="org.eclipse.osgi" autoStart="true" startLevel="-1" />
</configurations>
</product>
"""
/*
"""\
<?xml version="1.0" encoding="UTF-8"?>
<?pde version="3.5"?>
<product name="de.prob.product" uid="de.prob" id="de.prob.standalone.product" application="de.prob.standalone.application" version="1.0.0.qualifier" useFeatures="true" includeLaunchers="true">
<configIni use="default">
</configIni>
<launcherArgs>
<vmArgsMac>-XstartOnFirstThread -Dorg.eclipse.swt.internal.carbon.smallFonts</vmArgsMac>
</launcherArgs>
<plugins>
</plugins>
</product>
"""*/
/*
<feature id="birkhoff.feature" version="1.0.0.qualifier"/>
*/
/*
}
def String listProductFeatures(){
String returnString = ""
for (int i = 0; i < features.size(); i++) {
returnString += '\n\t\t<feature id="${features[i]}" version="1.0.0.qualifier"/>'
}
return returnString
}
*/
// Build Script can be executed via gradle install
// Build Script can be executed via gradle install
// For a complete classPath Refresh please execute 'gradle deleteFromClassPath setClassPath'
// For a complete classPath Refresh please execute 'gradle deleteFromClassPath setClassPath'
// Pom Generation can be executed via gradle deploy
// Pom Generation can be executed via gradle deploy
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment