It is currently Sat Nov 26, 2011 7:51 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 36 posts ]  Go to page 1, 2, 3  Next
Author Message
 Post subject: Running TED w/ Maven built jar
PostPosted: Sat Nov 07, 2009 2:23 pm 
Offline
Developer

Joined: Thu Oct 08, 2009 9:31 pm
Posts: 44
I've created a new thread for this as I want to get it out of the UI thread.

Quote:
I see it creates a file in trunk\ted-core\target\. The only problem is that this file doesn't do anything (even when placed in the runnable ted folder.


This is b/c all of the jar's dependencies are not present. The way that I test the jar built by maven (the latest build) is:

In the ted-core directory, run:

Code:
mvn clean dependency:copy-dependencies package


This will build the latest ted jar (placing it in the target folder), and will copy the jar's dependencies into the target/dependency folder.

Next I copy the newly built jar file into the dependency folder and run ted from there.

So, I never use the 'runnable ted' folder.

_________________
MS


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 09, 2009 4:43 pm 
Offline
Lead Developer
User avatar

Joined: Mon Jan 16, 2006 5:46 pm
Posts: 904
Location: Netherlands
Euh, and what if you're working with Windows and there is no command line? :)I assume you've to use the Maven plugin for Eclipse but I wouldn't know which option it then would be.

Quote:
So, I never use the 'runnable ted' folder.

I think we should move this one out of the main folder and make a development build folder in the releases branch.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 12, 2009 6:56 pm 
Offline
Lead Developer
User avatar

Joined: Mon Jan 16, 2006 5:46 pm
Posts: 904
Location: Netherlands
Okay I managed to get it to work.

The only problem I now have is that the new jar will only open with the noTray command. Do any of you know what the problem could be there?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 12, 2009 9:59 pm 
Offline
Lead Developer
User avatar

Joined: Mon Jan 16, 2006 4:11 pm
Posts: 645
Location: Netherlands
I think the JDIC libraries are not correctly copied or not present in the folder of your ted.jar?

_________________
Roel

i watch: simpsons, south park, lost, top gear, true blood & fringe
download - documentation - bugs/feature requests - sourceforge -


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 13, 2009 3:07 pm 
Offline
Developer

Joined: Thu Oct 08, 2009 9:31 pm
Posts: 44
Quote:
I think the JDIC libraries are not correctly copied or not present in the folder of your ted.jar?


Yep... That sounds about right.


I'm working on a mvn process to copy everything in the right place during the maven 'package' phase.

I should be able to get that in place over the weekend.

I've created a ticket in flyspray for this.

https://ted.nu/bugs/index.php?do=details&task_id=301

Please take a look as I have some questions about the jdic.jar and OS specific files.

Edit Jofo: adjust url in post as you took over ownership of the issue by clicking on it

_________________
MS


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 16, 2009 10:32 pm 
Offline
Lead Developer
User avatar

Joined: Mon Jan 16, 2006 5:46 pm
Posts: 904
Location: Netherlands
Mike, any progress on this issue? I tried to get ted to work with jdic this weekend but I failed miserably. I just can't figure out why it does work in Eclipse but doesn't do it after you created the jar.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 17, 2009 2:36 pm 
Offline
Developer

Joined: Thu Oct 08, 2009 9:31 pm
Posts: 44
Just about finished. I have a few questions though...

Does the tray support require only the stub_jdic.jar files, or does it also require the .so files under the <os>/x86 folder as well?

I'm struggling with learning how this works.

However... hold tight, I'll see if I can get this committed for tonight.

_________________
MS


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 17, 2009 7:07 pm 
Offline
Developer

Joined: Thu Oct 08, 2009 9:31 pm
Posts: 44
Ah... Looks like Jdic.jar is not being put in the manifest by maven.

I'm working now, but I'll fix it tonight and get it committed.

Cheers.

_________________
MS


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 17, 2009 7:08 pm 
Offline
Lead Developer
User avatar

Joined: Mon Jan 16, 2006 4:11 pm
Posts: 645
Location: Netherlands
As far as i know, the jdic jar files function as a kind of proxy to the platform specific files that implement jdic functionality in a language that is not java. So we still need everything in the sub folders, since that is where all the magic happens.

_________________
Roel

i watch: simpsons, south park, lost, top gear, true blood & fringe
download - documentation - bugs/feature requests - sourceforge -


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 18, 2009 7:31 pm 
Offline
Developer

Joined: Thu Oct 08, 2009 9:31 pm
Posts: 44
Just to let you know...

I worked on this issue last night for a little while, and finally found a way around this issue (thanks for the insight Kenny).

I'll be able to finish it up tonight and close off this issue.

_________________
MS


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 18, 2009 8:34 pm 
Offline
Lead Developer
User avatar

Joined: Mon Jan 16, 2006 5:46 pm
Posts: 904
Location: Netherlands
Okay cool, looking forward to being able to build a new jar :)

I'll see if I can make a dev build with all the needed jars.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 20, 2009 1:36 am 
Offline
Developer

Joined: Thu Oct 08, 2009 9:31 pm
Posts: 44
Just committed a fix for this.

Here's the run-down.


To build a runnable version of Ted, run the following from the ted-core directory:

Code:
mvn clean package


When this is completed, a runnable directory should be created in:

ted/ted-core/target/

If you run the ted jar in this 'runnable' directory everything should now work.

Let me know if you have any problems.


You can also do this through eclipse if the IAM plugin is installed.
1) Right click the ted-core project.
2) Maven 2 --> Run Goal
3) Enter 'package' as the goal
4) Click OK.

_________________
MS


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 20, 2009 1:39 am 
Offline
Developer

Joined: Thu Oct 08, 2009 9:31 pm
Posts: 44
Also, there are currently some test jars that get copied into the runnable directory that are not needed. My plan is to eventually use maven's assembly plugin to assemble a proper release.

The solution above will get you going for now.

_________________
MS


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 20, 2009 2:28 am 
Offline
Developer

Joined: Thu Oct 08, 2009 9:31 pm
Posts: 44
Forget about the previous comment.

Only runtime dependencies are now being copied into the runnable folder.

_________________
MS


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 20, 2009 9:53 am 
Offline
Lead Developer
User avatar

Joined: Mon Jan 16, 2006 5:46 pm
Posts: 904
Location: Netherlands
Okay thanks! I don't have time before Sunday to check it out but I'll then have a look at it.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 36 posts ]  Go to page 1, 2, 3  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group