Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
83255eab
Commit
83255eab
authored
11 years ago
by
felmer
Browse files
Options
Downloads
Patches
Plain Diff
SP-940, SWE-22: add signed JARs for Web Start applications to WAR
SVN: 29994
parent
d78a1d8b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
openbis_standard_technologies/build.gradle
+56
-1
56 additions, 1 deletion
openbis_standard_technologies/build.gradle
with
56 additions
and
1 deletion
openbis_standard_technologies/build.gradle
+
56
−
1
View file @
83255eab
...
@@ -20,6 +20,7 @@ configurations.create('zipping')
...
@@ -20,6 +20,7 @@ configurations.create('zipping')
configurations
.
create
(
'admin_partial'
)
configurations
.
create
(
'admin_partial'
)
configurations
.
create
(
'admin_full'
)
configurations
.
create
(
'admin_full'
)
configurations
.
create
(
'datastore_server'
)
configurations
.
create
(
'datastore_server'
)
configurations
.
create
(
'webStartJars'
)
def
jettyVersion
=
'8.1.8'
def
jettyVersion
=
'8.1.8'
...
@@ -56,7 +57,25 @@ dependencies {
...
@@ -56,7 +57,25 @@ dependencies {
datastore_server
project
(
':deep_sequencing_unit'
),
datastore_server
project
(
':deep_sequencing_unit'
),
project
(
':rtd_yeastx'
),
project
(
':rtd_yeastx'
),
project
(
':screening'
),
project
(
':screening'
),
project
(
':rtd_phosphonetx'
)
project
(
':rtd_phosphonetx'
)
webStartJars
'cisd:cisd-base:+'
,
'apache:commons-codec:+'
,
'apache:commons-io:+'
,
'apache:commons-httpclient:+'
,
'apache:commons-lang:+'
,
'apache:commons-logging:+'
,
'imagej:ij:+'
,
'python:jython:+'
,
'sybit:image-viewer:+'
,
'springframework:spring-aop:+'
,
'springframework:spring-beans:+'
,
'springframework:spring-context:+'
,
'springframework:spring-core:+'
,
'springframework:spring-web:+'
,
'springframework:stream-supporting-httpinvoker:+'
,
'aopalliance:aopalliance:+'
}
}
buildscript
{
buildscript
{
...
@@ -165,8 +184,43 @@ task checkFilesExist {
...
@@ -165,8 +184,43 @@ task checkFilesExist {
}
}
}
}
signedJarsFolder
=
'targets/dist/signed_jars'
task
createOpenbisJar
(
type:
Jar
)
{
archiveName
=
'openbis.jar'
from
zipTree
(
project
(
':common'
).
jar
.
archivePath
).
plus
(
zipTree
(
project
(
':openbis-common'
).
jar
.
archivePath
).
plus
(
zipTree
(
project
(
':screening'
).
jar
.
archivePath
).
plus
(
zipTree
(
project
(
':openbis'
).
jar
.
archivePath
)))).
matching
{
include
'**/ch/systemsx/cisd/common/spring/HttpInvokerUtils.class'
include
'**/ch/systemsx/cisd/common/**/*.class'
include
'**/ch/systemsx/cisd/openbis/common/**/*.class'
include
'**/ch/systemsx/cisd/openbis/generic/client/api/**/*.class'
include
'**/ch/systemsx/cisd/openbis/generic/client/cli/**/*.class'
include
'**/shared/I*.class'
include
'**/shared/basic/dto/**/*.class'
include
'**/shared/basic/*.class'
include
'**/*BuildAndEnvironmentInfo.class'
}
destinationDir
=
file
(
signedJarsFolder
)
}
task
signWebStartJars
(
type:
Copy
)
{
from
configurations
.
webStartJars
.
files
into
signedJarsFolder
rename
'(.+)-[^-]*\\.jar'
,
'$1.jar'
doLast
{
file
(
signedJarsFolder
).
listFiles
().
each
{
file
->
ant
.
signjar
(
jar:
file
,
keystore:
'../screening/etc/dev.keystore'
,
alias:
'openbis'
,
storepass:
'openbistest'
)
}
}
}
signWebStartJars
.
dependsOn
createOpenbisJar
war
.
dependsOn
compileGwt
war
.
dependsOn
compileGwt
war
.
dependsOn
checkFilesExist
war
.
dependsOn
checkFilesExist
war
.
dependsOn
signWebStartJars
war
{
war
{
rootSpec
.
eachFile
{
file
->
rootSpec
.
eachFile
{
file
->
if
(
file
.
name
.
startsWith
(
'cisd-cifex'
)
||
file
.
name
.
startsWith
(
'datastore_server'
))
{
if
(
file
.
name
.
startsWith
(
'cisd-cifex'
)
||
file
.
name
.
startsWith
(
'datastore_server'
))
{
...
@@ -175,6 +229,7 @@ war {
...
@@ -175,6 +229,7 @@ war {
}
}
from
"${compileGwt.buildDir}/ch.systemsx.cisd.openbis.OpenBIS"
from
"${compileGwt.buildDir}/ch.systemsx.cisd.openbis.OpenBIS"
from
signedJarsFolder
webXml
=
file
(
'resource/server/web.xml'
)
webXml
=
file
(
'resource/server/web.xml'
)
webInf
{
webInf
{
from
"${compileGwt.buildDir}/WEB-INF"
,
from
"${compileGwt.buildDir}/WEB-INF"
,
...
...
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