Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiler targetDirectory is not canonicalized #1387

Closed
chrylis opened this issue Sep 7, 2022 · 4 comments
Closed

Compiler targetDirectory is not canonicalized #1387

chrylis opened this issue Sep 7, 2022 · 4 comments
Assignees
Labels
Milestone

Comments

@chrylis
Copy link

chrylis commented Sep 7, 2022

I'm trying to obtain the target directory to write a resource (see post on users@), and while running in GRECLIPSE, the config's targetDirectory is set to a relative target/test-classes. When canonicalized or used to open a file, this produces $ECLIPSE_HOME/target/test-classes instead of the actual output directory. groovyc under Maven works as expected.

Related: #575

@eric-milles
Copy link
Member

Is this when you build in the IDE or using the maven compiler adapter?

@chrylis
Copy link
Author

chrylis commented Sep 7, 2022

This is when running from the regular IDE build (i.e., "clean project and start a build immediately"). The File is relative and then is interpreted in the IDE's working directory instead of using the project root.

@eric-milles eric-milles self-assigned this Sep 7, 2022
@eric-milles eric-milles added the bug label Sep 7, 2022
@eric-milles eric-milles added this to the v4.7.0 milestone Sep 7, 2022
@chrylis
Copy link
Author

chrylis commented Sep 8, 2022

That looks like it should do it. Thanks so much, and I'll pick up the next snapshot!

@chrylis
Copy link
Author

chrylis commented Sep 12, 2022

I updated to the latest snapshot, and it's working. Thanks again!

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

No branches or pull requests

2 participants