Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

.classpath syntax #41

Closed
sn1p3r46 opened this issue Nov 23, 2015 · 7 comments
Closed

.classpath syntax #41

sn1p3r46 opened this issue Nov 23, 2015 · 7 comments

Comments

@sn1p3r46
Copy link

Hello, thanks for the great plugin you developed.

I am having troubles with the .classpath file, could you provide some examples for a complex .classpath file?

The plugin does not work when I add multiple path, but I guess is a problem of mine not of the plugin.

Thanks a lot
Andrea

@RomuloPBenedetti
Copy link

I would like it too, in my case I have a project with "sub-projects"
with gradle builds, one of them is java, I've put paths from my repository root where is .classpath:

./subproject(java)/src/main/java:
./subproject(java)/build/classes/main:
./subproject(java)/lib/*

As you can see I don't include in my paths, package folders.

@Arcanemagus
Copy link
Member

The .classpath file is part of javac, not this package. This is just a simple intermediary that runs that, parses its output, and sends it to linter.

I was trying to find some examples to put in the readme anyway... but I wasn't having much luck from a quick Google search. @kepler0 since you've done most of the recent work on this do you have any good examples or resources about them? Last time I touched Java code was over 10 years ago...

@RomuloPBenedetti
Copy link

There is no reference to this method of declaring class files location in javac documentation, through a .classpath file .
Some other packages as autocomplete-java are using this concept, But it takes the same example as point.

@Arcanemagus
Copy link
Member

The answers to this are really all that I've been able to find: http://stackoverflow.com/questions/7186676/whats-in-an-eclipse-classpath-project-file

@florianb
Copy link

The .classpath-file is originated at the eclipse-project (unfortunatels i couldn't find any good resource documenting its xml-structure, but at least a semi-good one). Other tools like Maven, Gradle and Netbeans are able to read or generate those .classpath files, so i guess for a normal developer workflow this might be the most unobtrusive way to enable classpath-recognition.

@florianb
Copy link

florianb commented Feb 9, 2016

Since it looks like that a few issues touch the use of .classpath-files i swapped that topic into a different issue.

For the reasons in the issue #62 - i would like to allow the classpath-settings over the configuration only. I appreciate any thoughts.

@florianb
Copy link

The classpath concerns will be bundled in the new and shiny atom-javaenv-package - it will be introduced with the next major-release #76.

Thank you all for your contribution and thoughts on this topic! 💝

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants