Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Ploty
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Instrument Control
Ploty
Commits
2ee41366
Commit
2ee41366
authored
9 years ago
by
yannick legoc
Browse files
Options
Downloads
Patches
Plain Diff
split deploy part into ploty package
parent
80506110
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
deploy.sh
+0
-26
0 additions, 26 deletions
deploy.sh
pom.xml
+3
-88
3 additions, 88 deletions
pom.xml
with
3 additions
and
114 deletions
deploy.sh
deleted
100755 → 0
+
0
−
26
View file @
80506110
#!/bin/bash
# Get the arguments.
projectArtifactId
=
$1
swtPlatform
=
$2
projectVersion
=
$3
destDir
=
$4
# Check if the version is a snapshot
projectVersionWithoutSnapshot
=
${
projectVersion
%SNAPSHOT
}
projectVersionWithSnapshot
=
$projectVersionWithoutSnapshot
"SNAPSHOT"
jarFile
=
"target/"
$projectArtifactId
"-"
$swtPlatform
"-"
$projectVersion
".jar"
destFile
=
$destDir
"/"
$projectArtifactId
"-"
$swtPlatform
".jar"
cp
$jarFile
$destFile
echo
"Copied
$jarFile
to
$destFile
"
if
[[
"
$projectVersionWithSnapshot
"
==
"
$projectVersion
"
]]
then
echo
"This is a snapshot version, deploying the full jar is not performed"
exit
fi
echo
"Deploying the full jar"
This diff is collapsed.
Click to expand it.
pom.xml
+
3
−
88
View file @
2ee41366
...
...
@@ -35,12 +35,8 @@
<url>
https://maven.ill.fr/content/repositories/snapshots
</url>
</repository>
<repository>
<id>
maven-eclipse-repo
</id>
<url>
http://maven-eclipse.github.io/maven
</url>
</repository>
<repository>
<id>
maven-gluegen
</id>
<url>
http://matsim.org/m2repo
</url>
<id>
ill-repo-eclipse
</id>
<url>
https://maven.ill.fr/content/repositories/eclipse
</url>
</repository>
</repositories>
...
...
@@ -174,88 +170,7 @@
</archive>
</configuration>
</plugin>
<!-- Purge the local repository when deploying the artifact.
This is necessary because the assembly plugin aggregates all the dependencies that could be modified locally, e.g. NomadCommandSystem
-->
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-dependency-plugin
</artifactId>
<version>
2.10
</version>
<executions>
<execution>
<id>
purge-local-dependencies
</id>
<phase>
deploy
</phase>
<goals>
<goal>
purge-local-repository
</goal>
</goals>
<configuration>
<excludes>
</excludes>
</configuration>
</execution>
</executions>
</plugin>
<!-- Assemble a single jar -->
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-assembly-plugin
</artifactId>
<configuration>
<archive>
<manifest>
<mainClass>
fr.ill.ics.client.control.MainWindow
</mainClass>
<addDefaultImplementationEntries>
true
</addDefaultImplementationEntries>
<addDefaultSpecificationEntries>
true
</addDefaultSpecificationEntries>
</manifest>
<manifestEntries>
<SCM-Revision>
${buildNumber}
</SCM-Revision>
</manifestEntries>
</archive>
<descriptorRefs>
<descriptorRef>
jar-with-dependencies
</descriptorRef>
</descriptorRefs>
<finalName>
${project.artifactId}-${swt.platform}-${project.version}
</finalName>
<appendAssemblyId>
false
</appendAssemblyId>
</configuration>
<executions>
<execution>
<phase>
deploy
</phase>
<goals>
<goal>
single
</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- We temporarily copy the full library into the local directories -->
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-antrun-plugin
</artifactId>
<version>
1.8
</version>
<executions>
<execution>
<id>
deploy
</id>
<phase>
deploy
</phase>
<configuration>
<target>
<exec
executable=
"${env.NOMADCLIENT_HOME}/../Ploty/deploy.sh"
>
<arg
value=
"${project.artifactId}"
/>
<arg
value=
"${swt.platform}"
/>
<arg
value=
"${project.version}"
/>
<arg
value=
"${dest.dir}"
/>
</exec>
</target>
</configuration>
<goals>
<goal>
run
</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
\ No newline at end of file
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