Task #598 (closed)
Opened 12 years ago
Closed 12 years ago
Rework tasks for better administration
| Reported by: | jamoore | Owned by: | jamoore |
|---|---|---|---|
| Priority: | minor | Milestone: | 3.0-Beta2 |
| Component: | Deployment | Version: | 3.0-Beta1 |
| Keywords: | ant, tasks, passwords, admin, iteration6 | Cc: | jrswedlow, cxallan |
| Resources: | n.a. | Referenced By: | n.a. |
| References: | n.a. | Remaining Time: | n.a. |
| Sprint: | n.a. |
Description
Currently the java omero adduser etc. tasks have bugs (#488). It would be helpful if:
- More was possible with the tasks
- Tasks were runnable via java -jar
- It was possible to pass passwords via stdin to tasks
Change History (9)
comment:1 Changed 12 years ago by jmoore
- Cc jason callan added
- Resolution set to fixed
- Status changed from new to closed
comment:2 Changed 12 years ago by jmoore
r1280 adds more tasks.
comment:3 Changed 12 years ago by jmoore
- Resolution fixed deleted
- Status changed from closed to reopened
r1282 contains more:
- Added admin.AdminTask abstract super class which handles authentication exceptions more cleanly
- Added TaskFailure which is handled specially by Run
- Fixed the command line tests which were failling because of changes to Configuration; now necessary to use etc/local.properties-like properties for Configuration -- user => omero.user etc.
Reopening because there's obviously more to do.
comment:4 Changed 12 years ago by jmoore
r1283 propagates to tools/licenses
comment:5 Changed 12 years ago by jmoore
r1285 includes improved error handling. Need more input checks in task.init()
comment:6 Changed 12 years ago by jmoore
r1381 fixes the problem of tasks return non-null (error) but the build finishing successfully.
comment:7 Changed 12 years ago by jmoore
r1383 adds to usage-ant.txt
comment:8 Changed 12 years ago by jmoore
- Keywords iteration6 added
Other administration choices are available. We probably don't want to spend too much time on these functions. Closing.
comment:9 Changed 12 years ago by jmoore
- Resolution set to fixed
- Status changed from reopened to closed
r1279 closes.
Also, now possible to do:
The last call to java -jar is enabled by Main-Class being set in the META-INF/MANIFEST file for all jars. This is configurable via etc/local.properties or <component>/build.xml.
Note: to run tasks, the server must also be running.