[ome-users] LDAP questions

Josh Moore josh at glencoesoftware.com
Thu Mar 22 13:15:02 GMT 2012


On Mar 22, 2012, at 12:42 PM, Harri Jäälinoja wrote:

> On 16/03/12 14:17, Josh Moore wrote:
>> Basic instructions for bundling the classes can be found here:
>> 
>>   https://trac.openmicroscopy.org.uk/ome/wiki/ExtendingOmero#JavaDeployment
>> 
>> but they may be too terse. If so, let us know.
>> 
>>> >
> 
> Hi Josh,

Hi Harri,

> I am just getting started with this. I followed the instructions to get the code from github, and ran build.py successfully to build the entire project.
> 
> Then I copied an existing NewUserGroupBean implementation to serve as a starting point:
> hajaalin at biotek973:~/openmicroscopy$ cp ./components/server/src/ome/security/auth/QueryNewUserGroupBean.java ./components/server/src/ome/security/auth/HyNewUserGroupBean.java
> 
> Then after editing the class names in my new implementation I ran build.py again, and I can find the class file:
> ./components/server/target/classes/ome/security/auth/HyNewUserGroupBean.class
> 
> 
> So far this is good, the only problem is that it takes 1 minute 35 seconds to build the entire project (when only this one file is modified), so of course impatient as I am I would like to make it quicker :)

Understood. Agreed. It's also good to do it elsewhere for re-use with other installations. This class would have ended up in the server.jar which you don't really want to be passing around.

> I tried to compile only the server component, but that fails:
> 
> hajaalin at biotek973:~/openmicroscopy$ ./build.py components/server/build.xml
> Buildfile: /home/hajaalin/openmicroscopy/build.xml
> 
> BUILD FAILED
> Target "components/server/build.xml" does not exist in the project "toplevel".
> 
> Total time: 0 seconds

You left out "-f" in order to choose the file:

./build.py -f components/server/build.xml

but this would still take too long.

> What do you suggest in this case?

You actually don't need much. It even suffices to use "javac" and "jar" directly, though that requires to you to get your classpath set correctly.

Alternatively, the intention is that it's possible to move to a new directory and plugin into the build system. I've setup an example here: https://gist.github.com/2158254

Cheers,
~Josh.


More information about the ome-users mailing list