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
de646469
Commit
de646469
authored
14 years ago
by
tpylak
Browse files
Options
Downloads
Patches
Plain Diff
LMS-1491 screening api: ant task
SVN: 15603
parent
4b3dcd75
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
screening/build/build.xml
+23
-8
23 additions, 8 deletions
screening/build/build.xml
screening/source/java/ch/systemsx/cisd/openbis/plugin/screening/client/api/v1/ScreeningClientApiTest.java
+10
-7
10 additions, 7 deletions
...lugin/screening/client/api/v1/ScreeningClientApiTest.java
with
33 additions
and
15 deletions
screening/build/build.xml
+
23
−
8
View file @
de646469
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<import
file=
"../../openbis/build/build.xml"
/>
<import
file=
"../../openbis/build/build.xml"
/>
<import
file=
"../../datastore_server/build/build.xml"
/>
<import
file=
"../../datastore_server/build/build.xml"
/>
<project-classpath
name=
"ecp"
classes=
"${classes}"
/>
<project-classpath
name=
"ecp"
classes=
"${classes}"
/>
<property
name=
"original.dist"
value=
"dist"
/>
<property
name=
"original.dist"
value=
"dist"
/>
<property
name=
"mainfolder"
value=
"screening"
/>
<property
name=
"mainfolder"
value=
"screening"
/>
<property
name=
"variant"
value=
"-screening"
/>
<property
name=
"variant"
value=
"-screening"
/>
...
@@ -12,6 +12,9 @@
...
@@ -12,6 +12,9 @@
<property
name=
"dist.screening-api.jar"
value=
"${dist.screening-api.lib}/openbis_screening_api.jar"
/>
<property
name=
"dist.screening-api.jar"
value=
"${dist.screening-api.lib}/openbis_screening_api.jar"
/>
<property
name=
"dist.screening-api.javadoc"
value=
"${dist.screening-api}/doc"
/>
<property
name=
"dist.screening-api.javadoc"
value=
"${dist.screening-api}/doc"
/>
<property
name=
"classes.screening"
value=
"../screening/targets/www/WEB-INF/classes"
/>
<property
name=
"classes.common-server"
value=
"../server-common/targets/ant/classes"
/>
<target
name=
"compile"
depends=
"build-common.compile, clean"
/>
<target
name=
"compile"
depends=
"build-common.compile, clean"
/>
<!--
<!--
...
@@ -94,7 +97,7 @@
...
@@ -94,7 +97,7 @@
access=
"public"
access=
"public"
author=
"false"
author=
"false"
version=
"false"
version=
"false"
classpath=
"${ecp}:
../screening/targets/www/WEB-INF/classes
"
>
classpath=
"${ecp}:
${classes.screening}
"
>
<fileset
dir=
"${sources}"
>
<fileset
dir=
"${sources}"
>
<include
name=
"ch/systemsx/cisd/openbis/plugin/screening/client/api/v1/*"
/>
<include
name=
"ch/systemsx/cisd/openbis/plugin/screening/client/api/v1/*"
/>
<include
name=
"ch/systemsx/cisd/openbis/plugin/screening/shared/api/v1/dto/*"
/>
<include
name=
"ch/systemsx/cisd/openbis/plugin/screening/shared/api/v1/dto/*"
/>
...
@@ -102,29 +105,41 @@
...
@@ -102,29 +105,41 @@
</javadoc>
</javadoc>
</target>
</target>
<!--
To test the API you can use
java -jar lib/openbis_screening_api.jar USER PASSWD OPENBIS_SERVER_URL
-->
<target
name=
"screening-api-libs"
>
<target
name=
"screening-api-libs"
>
<mkdir
dir=
"${dist.screening-api.lib}"
/>
<mkdir
dir=
"${dist.screening-api.lib}"
/>
<build-info
revision=
"revision.number"
version=
"version.number"
clean=
"clean.flag"
/>
<build-info
revision=
"revision.number"
version=
"version.number"
clean=
"clean.flag"
/>
<echo
file=
"${build.info.file}"
>
${version.number}:${revision.number}:${clean.flag}
</echo>
<echo
file=
"${build.info.file}"
>
${version.number}:${revision.number}:${clean.flag}
</echo>
<recursive-jar
destfile=
"${dist.screening-api.jar}"
>
<recursive-jar
destfile=
"${dist.screening-api.jar}"
>
<fileset
dir=
"${classes}"
>
<fileset
dir=
"${classes.screening}"
>
<include
name=
"ch/systemsx/cisd/common/spring/*.class"
/>
<include
name=
"ch/systemsx/cisd/openbis/dss/screening/shared/api/v1/**/*.class"
/>
<include
name=
"ch/systemsx/cisd/openbis/dss/screening/shared/api/v1/**/*.class"
/>
<include
name=
"ch/systemsx/cisd/openbis/plugin/screening/shared/api/v1/**/*.class"
/>
<include
name=
"ch/systemsx/cisd/openbis/plugin/screening/shared/api/v1/**/*.class"
/>
<include
name=
"ch/systemsx/cisd/openbis/plugin/screening/client/api/v1/**/*.class"
/>
<include
name=
"ch/systemsx/cisd/openbis/plugin/screening/client/api/v1/**/*.class"
/>
<include
name=
"${build.info.filename}"
/>
<include
name=
"${build.info.filename}"
/>
</fileset>
</fileset>
<manifest>
<manifest>
<attribute
name=
"Main-Class"
value=
"ch.systemsx.cisd.openbis.plugin.screening.client.api.v1.ScreeningClientApiTest"
/>
<attribute
name=
"Main-Class"
value=
"ch.systemsx.cisd.openbis.plugin.screening.client.api.v1.ScreeningClientApiTest"
/>
<attribute
name=
"Class-Path"
<attribute
name=
"Class-Path"
value=
"spring.jar stream-supporting-httpinvoker.jar"
/>
value=
"spring.jar
commons-logging.jar
stream-supporting-httpinvoker.jar
commons-httpclient.jar commons-codec.jar log4j.jar
"
/>
<attribute
name=
"Version"
value=
"${version.number}"
/>
<attribute
name=
"Version"
value=
"${version.number}"
/>
<attribute
name=
"Build-Number"
<attribute
name=
"Build-Number"
value=
"${version.number} (r${revision.number},${clean.flag})"
/>
value=
"${version.number} (r${revision.number},${clean.flag})"
/>
</manifest>
</manifest>
</recursive-jar>
</recursive-jar>
<jar
update=
"true"
destfile=
"${dist.screening-api.jar}"
>
<fileset
dir=
"${classes.common-server}"
>
<include
name=
"ch/systemsx/cisd/common/spring/*.class"
/>
</fileset>
</jar>
<copy
file=
"${lib}/spring/spring.jar"
todir=
"${dist.screening-api.lib}"
/>
<copy
file=
"${lib}/spring/spring.jar"
todir=
"${dist.screening-api.lib}"
/>
<copy
file=
"${lib}/spring/third-party/stream-supporting-httpinvoker.jar"
todir=
"${dist.screening-api.lib}"
/>
<copy
file=
"${lib}/spring/third-party/stream-supporting-httpinvoker.jar"
todir=
"${dist.screening-api.lib}"
/>
<copy
file=
"${lib}/commons-logging/commons-logging.jar"
todir=
"${dist.screening-api.lib}"
/>
<copy
file=
"${lib}/commons-httpclient/commons-httpclient.jar"
todir=
"${dist.screening-api.lib}"
/>
<copy
file=
"${lib}/commons-codec/commons-codec.jar"
todir=
"${dist.screening-api.lib}"
/>
<copy
file=
"${lib}/log4j/log4j.jar"
todir=
"${dist.screening-api.lib}"
/>
</target>
</target>
<target
name=
"screening-api"
depends=
"screening-api-doc, screening-api-libs"
/>
<target
name=
"screening-api"
depends=
"screening-api-doc, screening-api-libs"
/>
...
...
This diff is collapsed.
Click to expand it.
screening/source/java/ch/systemsx/cisd/openbis/plugin/screening/client/api/v1/ScreeningClientApiTest.java
+
10
−
7
View file @
de646469
...
@@ -27,7 +27,10 @@ import java.util.List;
...
@@ -27,7 +27,10 @@ import java.util.List;
import
org.apache.log4j.lf5.util.StreamUtils
;
import
org.apache.log4j.lf5.util.StreamUtils
;
import
ch.systemsx.cisd.openbis.plugin.screening.shared.api.v1.dto.FeatureVectorDatasetReference
;
import
ch.systemsx.cisd.openbis.plugin.screening.shared.api.v1.dto.IDatasetIdentifier
;
import
ch.systemsx.cisd.openbis.plugin.screening.shared.api.v1.dto.IDatasetIdentifier
;
import
ch.systemsx.cisd.openbis.plugin.screening.shared.api.v1.dto.ImageDatasetReference
;
import
ch.systemsx.cisd.openbis.plugin.screening.shared.api.v1.dto.Plate
;
import
ch.systemsx.cisd.openbis.plugin.screening.shared.api.v1.dto.PlateImageReference
;
import
ch.systemsx.cisd.openbis.plugin.screening.shared.api.v1.dto.PlateImageReference
;
import
ch.systemsx.cisd.openbis.plugin.screening.shared.api.v1.dto.PlateSingleImage
;
import
ch.systemsx.cisd.openbis.plugin.screening.shared.api.v1.dto.PlateSingleImage
;
import
ch.systemsx.cisd.openbis.plugin.screening.shared.api.v1.dto.WellPosition
;
import
ch.systemsx.cisd.openbis.plugin.screening.shared.api.v1.dto.WellPosition
;
...
@@ -56,13 +59,13 @@ public class ScreeningClientApiTest
...
@@ -56,13 +59,13 @@ public class ScreeningClientApiTest
userId
));
userId
));
ScreeningOpenbisServiceFacade
facade
=
ScreeningOpenbisServiceFacade
facade
=
ScreeningOpenbisServiceFacade
.
tryCreate
(
userId
,
userPassword
,
serverUrl
);
ScreeningOpenbisServiceFacade
.
tryCreate
(
userId
,
userPassword
,
serverUrl
);
//
List<Plate> plates = facade.listPlates();
List
<
Plate
>
plates
=
facade
.
listPlates
();
//
System.out.println("Plates: " + plates);
System
.
out
.
println
(
"Plates: "
+
plates
);
//
List<ImageDatasetReference> imageDatasets = facade.listImageDatasets(plates);
List
<
ImageDatasetReference
>
imageDatasets
=
facade
.
listImageDatasets
(
plates
);
//
System.out.println("Image datasets: " + imageDatasets);
System
.
out
.
println
(
"Image datasets: "
+
imageDatasets
);
//
List<FeatureVectorDatasetReference> featureVectorDatasets =
List
<
FeatureVectorDatasetReference
>
featureVectorDatasets
=
//
facade.listFeatureVectorDatasets(plates);
facade
.
listFeatureVectorDatasets
(
plates
);
//
System.out.println("Feature vector datasets: " + featureVectorDatasets);
System
.
out
.
println
(
"Feature vector datasets: "
+
featureVectorDatasets
);
// test for feature vector dataset
// test for feature vector dataset
// String datasetCode = "20091214153212961-474922"; // feature vector
// String datasetCode = "20091214153212961-474922"; // feature vector
...
...
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