OCCRA
Go to Post Make sure what you are using is polycarbonate and not acrylic or it may very well literally shatter your dreams. - cadandcookies [more]
Home
Go Back   Chief Delphi > Technical > Programming
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 07-26-2018, 02:00 PM
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: 385
fovea1959 will become famous soon enough
"Team private" libraries when using VSC Alpha

our 2018 code had some non-standard libraries; we made a /lib/ folder in the project, put the jars there, added the folder to the Eclipse build (so eclipse was happy), and listed the folder in build.properties (userLibs=lib/) so that Ant was happy when building.

How do we do this in the brave new world?
Reply With Quote
  #2   Spotlight this post!  
Unread 07-26-2018, 02:11 PM
gerthworm's Avatar
gerthworm gerthworm is offline
Making the 1's and 0's
FRC #1736 (Robot Casserole)
Team Role: Mentor
 
Join Date: Jan 2015
Rookie Year: 2015
Location: Peoria, IL
Posts: 645
gerthworm has a reputation beyond reputegerthworm has a reputation beyond reputegerthworm has a reputation beyond reputegerthworm has a reputation beyond reputegerthworm has a reputation beyond reputegerthworm has a reputation beyond reputegerthworm has a reputation beyond reputegerthworm has a reputation beyond reputegerthworm has a reputation beyond reputegerthworm has a reputation beyond reputegerthworm has a reputation beyond repute
Re: "Team private" libraries when using VSC Alpha

Assuming they're publically available in repositories (and not custom-made ones that you build locally on the pc's), here's how we're (attempting) to do it so far:

https://github.com/RobotCasserole173...ild.gradle#L53
Reply With Quote
  #3   Spotlight this post!  
Unread 07-26-2018, 02:32 PM
Thad House Thad House is offline
Volunteer, WPILib Contributor
no team (Waiting for 2021)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2010
Location: Thousand Oaks, California
Posts: 1,229
Thad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond repute
Re: "Team private" libraries when using VSC Alpha

If you do want a local file, you can do the following. The root is the root of your project.

Code:
 compile files('lib/something_local.jar')
Put that inside your dependencies block.
__________________
All statements made are my own and not the feelings of any of my affiliated teams.
Teams 1510 and 2898 - Student 2010-2012
Team 4488 - Mentor 2013-2016
Co-developer of RobotDotNet, a .NET port of the WPILib.
Reply With Quote
  #4   Spotlight this post!  
Unread 07-26-2018, 02:41 PM
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: 385
fovea1959 will become famous soon enough
Re: "Team private" libraries when using VSC Alpha

that did it.

I see that ctre() wpilib() and navx() are all defined. Is there one for pathfinder?

I can place the pathfinder.jar we have been using in lib/ and call it out, but I don't know how to handle the .so...
Reply With Quote
  #5   Spotlight this post!  
Unread 07-26-2018, 02:44 PM
Clayton Yocom's Avatar
Clayton Yocom Clayton Yocom is offline
Programming Mentor
FRC #0027 (RUSH)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Clarkston, MI
Posts: 174
Clayton Yocom has a spectacular aura aboutClayton Yocom has a spectacular aura about
Send a message via AIM to Clayton Yocom Send a message via MSN to Clayton Yocom Send a message via Yahoo to Clayton Yocom
Re: "Team private" libraries when using VSC Alpha

You should also be able to create your own repository by adding

Code:
repositories {
    maven { url "file://" + projectDir + "/libs/java" }
}
And then using maven repository folder structure in the libs/java folder.

Example:

Have your jar in the following folder:

Code:
{project_directory}/libs/java/my/group/id/artifactid/version/artifactid-version.jar
and then add this in your dependencies section of your build.gradle

Code:
compile group: 'my.group.id', name: 'artifactid', version: 'version'
If you also have native dependencies, you can also add the following to your dependencies section as well to pick up those files.

Code:
nativeLib  fileTree(dir: 'libs/native', include: '*.so')
EDIT:

For pathfinder there is a import function as well.
Just put the following in your dependencies section.

Code:
compile pathfinder()
__________________
Member of FRC Team 45 TechnoKats : 2011 - 2016
Member of FRC Team 27 Team RUSH : 2017 - Present

Last edited by Clayton Yocom : 07-26-2018 at 02:47 PM.
Reply With Quote
  #6   Spotlight this post!  
Unread 07-26-2018, 02:54 PM
gerthworm's Avatar
gerthworm gerthworm is offline
Making the 1's and 0's
FRC #1736 (Robot Casserole)
Team Role: Mentor
 
Join Date: Jan 2015
Rookie Year: 2015
Location: Peoria, IL
Posts: 645
gerthworm has a reputation beyond reputegerthworm has a reputation beyond reputegerthworm has a reputation beyond reputegerthworm has a reputation beyond reputegerthworm has a reputation beyond reputegerthworm has a reputation beyond reputegerthworm has a reputation beyond reputegerthworm has a reputation beyond reputegerthworm has a reputation beyond reputegerthworm has a reputation beyond reputegerthworm has a reputation beyond repute
Re: "Team private" libraries when using VSC Alpha

Between this and the main thread, I'll toss in a suggestion that a useful documentation section could be "Recipies" that shows short snippits of the recommended way of doing some of these advanced-but-somewhat-common actions.
Reply With Quote
  #7   Spotlight this post!  
Unread 07-26-2018, 02:56 PM
AustinShalit's Avatar
AustinShalit AustinShalit is offline
Registered User
AKA: אוסטין
no team (WPILib Suite Developer)
 
Join Date: Dec 2013
Rookie Year: 2008
Location: Los Angeles/Worcester/Israel
Posts: 234
AustinShalit has much to be proud ofAustinShalit has much to be proud ofAustinShalit has much to be proud ofAustinShalit has much to be proud ofAustinShalit has much to be proud ofAustinShalit has much to be proud ofAustinShalit has much to be proud ofAustinShalit has much to be proud ofAustinShalit has much to be proud of
Re: "Team private" libraries when using VSC Alpha

Quote:
Originally Posted by fovea1959 View Post
that did it.

I see that ctre() wpilib() and navx() are all defined. Is there one for pathfinder?

I can place the pathfinder.jar we have been using in lib/ and call it out, but I don't know how to handle the .so...
This will do it:

Code:
pathfinder()
__________________
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 06:34 PM.

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


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