cancel
Showing results for 
Search instead for 
Did you mean: 

Building from sources

tobix10
Champ on-the-rise
Champ on-the-rise
Hello, I've download alfresco-workdesk-community-4.1.1.0-2013-07-11-dist.zip and there are jars with sources.
How can I modify sources and deploy a workdesk? Is there another way than to import each jar as project and create some customize building script?
Maybe there is another package for developers?

Thanks in advance,
Tom
6 REPLIES 6

deko
Star Contributor
Star Contributor
Please read the following posts, as the are dealing with your questions:

http://forums.alfresco.com/forum/help/programming-help/how-can-i-include-owd-source-eclipse-05102012...

tobix10
Champ on-the-rise
Champ on-the-rise
Thx, I didn't find this topic. I'll try it and ask if sth will not working properly Smiley Happy.

Any idea which jars I have to link to projects ?

For example I have a problem with org.springframework.jdbc(I try versions: 3.1, 3.0.0, 3.0.5)
I get in jdbc query call:
<blockquote>The type org.springframework.dao.DataAccessException cannot be resolved. It is indirectly referenced from required .class files<blockquote>

deko
Star Contributor
Star Contributor
Each project that requires depending JARs has a ow_dependeny.properties file in the source file included, listing the required JARs. Your issue seems more to be related to the JRE you are using in your Eclipse IDE. Please use JRE 1.6 (runtime 1.7 not supported yet) and set compliance level for your Workdesk Workspace to 1.6 also, then the springframework resolving errors should be gone.

tobix10
Champ on-the-rise
Champ on-the-rise
Ok, but can I get an information how this project have to be set up in eclipse? I read 2 topics: in first they say to make separate projects for each ow_*_source jar in another one someone put all src in Java Resources of Dynamic Web Project.

1st from you: http://forums.alfresco.com/forum/help/programming-help/how-can-i-include-owd-source-eclipse-05102012...
2nd: http://forums.alfresco.com/forum/help/programming-help/how-can-i-set-project-eclipse-and-what-needed...

What I need is to have access to workdesk code and modify it to my needs and then put all needed files in my tomcat/webapps directory. Basically bin/workdesk is core web-context and I can copy it to tomcat using ant, but what to do with code? When I for example change code in ow_core I need only to make jar and put it in WEB-INF/libs, thats it?

deko
Star Contributor
Star Contributor
The 2nd post is from 2010 and no longer valid. This one was describing the setup with MyEclipse, which is no longer needed today. My post (the 1st one) is the way you should go: You have one "workdesk" web project and all other jars are seperate Java projects. If you setup Eclipse right, the changes in the project are directly deployed to WEB-INF/lib. this no manual process then.

tobix10
Champ on-the-rise
Champ on-the-rise
Thank you for help, now I know how to do it right.