Go to Post It certainly shows to never give up, even if all you can do is score a single tetra. - Joe Ross [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 23-09-2013, 06:46
fovea1959's Avatar
fovea1959 fovea1959 is offline
Herder of programmers
AKA: Doug Wegscheid
FRC #3620 (The Average Joes)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2011
Location: St Joseph
Posts: 336
fovea1959 will become famous soon enough
Generating preverified jars

Something I've been toying with is using microlog to take care of our logging needs (replacing System.out.println). I have had good success integrating microlog into a robot if I include (stripped-down) source code, but now I want keep microlog as a separate jar and include that jar into the robot build.

Does anyone have an example of a build.xml to generate a preverified jar, ready to include in a Robot?
Reply With Quote
  #2   Spotlight this post!  
Unread 20-10-2013, 11:10
Spaghetti's Avatar
Spaghetti Spaghetti is offline
Registered User
FRC #0488 (XBot)
Team Role: Mentor
 
Join Date: Apr 2012
Rookie Year: 2011
Location: Seattle
Posts: 13
Spaghetti is an unknown quantity at this point
Re: Generating preverified jars

Hey there, we recently had the exact same problem with shared jars. What we ended up doing was copying the build.xml from the wpilib project (which builds a pre-verified library .jar) and then run the target 'dist'.

Would be interested in your results with using microlog if you get it going. We've been rolling our own logging solution from scratch each year.
Reply With Quote
  #3   Spotlight this post!  
Unread 20-10-2013, 21:10
joelg236 joelg236 is offline
4334 Retired Mentor & Alumni
AKA: Joel Gallant
no team
Team Role: Mentor
 
Join Date: Dec 2011
Rookie Year: 2012
Location: Calgary
Posts: 733
joelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond repute
Re: Generating preverified jars

I'm not so much interested in the logging part, but want to know how exactly you can include other jars when building. If someone figures it out, can you post specifics of how to do it?
__________________
All opinions are my own.
Reply With Quote
  #4   Spotlight this post!  
Unread 20-10-2013, 22:09
alexhenning alexhenning is offline
WPILib Developer
FRC #0348
 
Join Date: Apr 2010
Rookie Year: 2003
Location: MA
Posts: 49
alexhenning will become famous soon enough
Re: Generating preverified jars

If you look in the ~/sunspotfrcsdk directory, you can see how team's code is preverified.

Specifically, looking at ~/sunspotfrcsdk/build.xml and ~/sunspotfrcsdk/ant/preverify.jar will show you how to preverify with ant. Once you've preverified it, you can look into adding to the classpath in ~/sunspotfrcsdk/ant/classpath.xml. Unfortunately, the process of adding libraries isn't straightforward.

Hopefully this helps get you started.
Reply With Quote
  #5   Spotlight this post!  
Unread 28-12-2013, 19:00
Spaghetti's Avatar
Spaghetti Spaghetti is offline
Registered User
FRC #0488 (XBot)
Team Role: Mentor
 
Join Date: Apr 2012
Rookie Year: 2011
Location: Seattle
Posts: 13
Spaghetti is an unknown quantity at this point
Re: Generating preverified jars

We'll try to post up our off-season code soon and I'll put a link here. It'll have an end-to-end example of a separate project .jar getting pre-verified and included in a robot project.
Reply With Quote
  #6   Spotlight this post!  
Unread 02-01-2014, 16:24
JohnGilb JohnGilb is offline
Programming Mentor, Drive Mentor
FRC #0488
 
Join Date: Mar 2011
Rookie Year: 2003
Location: Redmond, WA
Posts: 116
JohnGilb has a spectacular aura aboutJohnGilb has a spectacular aura aboutJohnGilb has a spectacular aura about
Re: Generating preverified jars

Following up on Spaghetti:

https://github.com/Team488/Shared

There are 3 projects in there:
-Core
-Test
-ActualRobot

Core gets preverified so it can be included in ActualRobot.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 00:43.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi