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
5bde4503
Commit
5bde4503
authored
13 years ago
by
Jens Bendisposto
Browse files
Options
Downloads
Patches
Plain Diff
inlined local tasks
parent
cfda90ca
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
build.gradle
+33
-1
33 additions, 1 deletion
build.gradle
local_tasks.gradle
+0
-34
0 additions, 34 deletions
local_tasks.gradle
with
33 additions
and
35 deletions
build.gradle
+
33
−
1
View file @
5bde4503
...
...
@@ -17,7 +17,39 @@ parentID = groupID+".parent" // will be the same as the folder name
targetRepositories
=
[
"http://cobra.cs.uni-duesseldorf.de/prob_dev_target/"
,
"http://download.eclipse.org/releases/indigo/"
]
// ps Repository with Target Definition File
apply
from:
'local_tasks.gradle'
apply
from:
'tycho_build.gradle'
// Local tasks
def
download
(
address
,
target
)
{
def
file
=
new
FileOutputStream
(
target
)
def
out
=
new
BufferedOutputStream
(
file
)
out
<<
new
URL
(
address
).
openStream
()
out
.
close
()
}
task
downloadCli
<<
{
dir
=
'de.prob.core/prob/'
delete
file
(
dir
)
new
File
(
dir
).
mkdirs
()
[
'leopard'
:
'macos'
,
'linux'
:
'linux'
,
'linux64'
:
'linux64'
,
'win32'
:
'windows'
].
each
{
n
=
it
.
getKey
()
targetdir
=
dir
+
it
.
getValue
()
targetzip
=
dir
+
"probcli_${n}.zip"
url
=
"http://nightly.cobra.cs.uni-duesseldorf.de/cli/probcli_${n}.zip"
download
(
url
,
targetzip
)
FileTree
zip
=
zipTree
(
targetzip
)
copy
{
from
zip
into
targetdir
}
delete
file
(
targetzip
)
}
}
task
collectArtifacts
(
type:
Copy
)
{
from
groupID
+
'.repository/target/repository/'
into
'updatesite'
}
This diff is collapsed.
Click to expand it.
local_tasks.gradle
deleted
100644 → 0
+
0
−
34
View file @
cfda90ca
def
download
(
address
,
target
)
{
def
file
=
new
FileOutputStream
(
target
)
def
out
=
new
BufferedOutputStream
(
file
)
out
<<
new
URL
(
address
).
openStream
()
out
.
close
()
}
task
downloadCli
<<
{
dir
=
'de.prob.core/prob/'
delete
file
(
dir
)
new
File
(
dir
).
mkdirs
()
[
'leopard'
:
'macos'
,
'linux'
:
'linux'
,
'linux64'
:
'linux64'
,
'win32'
:
'windows'
].
each
{
n
=
it
.
getKey
()
targetdir
=
dir
+
it
.
getValue
()
targetzip
=
dir
+
"probcli_${n}.zip"
url
=
"http://nightly.cobra.cs.uni-duesseldorf.de/cli/probcli_${n}.zip"
download
(
url
,
targetzip
)
FileTree
zip
=
zipTree
(
targetzip
)
copy
{
from
zip
into
targetdir
}
delete
file
(
targetzip
)
}
}
task
collectArtifacts
(
type:
Copy
)
{
from
groupID
+
'.repository/target/repository/'
into
'updatesite'
}
\ 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