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

Implement '-m, --module' options from Javac #119

Open
kriegaex opened this issue Jan 22, 2022 · 1 comment
Open

Implement '-m, --module' options from Javac #119

kriegaex opened this issue Jan 22, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@kriegaex
Copy link
Contributor

AJC has the very comfortable -sourceroots option, but no counterpart for (multi) modules, such as -modulesourceroots or --module-source-roots. It would be great for users to have an option which unburdens them from having to specify each single file to be compiled, but let the compiler find the files, just like we do it for normal source directories.

Actually, Javac has this option:

--module <module>(,<module>)*, -m <module>(,<module>)*
      Compile only the specified module(s), check timestamps

It works like this (added line breaks for readability):

javac
  --release 11
  -d bin
  --module-path "c:\Program Files\Java\AspectJ\lib\aspectjrt.jar"
  --module-source-path "modules/*/src"
  --module org.acme.first,org.acme.second

But the --module, -m options do not exist in ECJ and therefore AJC cannot utilise them either. I have just created JDT Core bug #578320, which we can track.

@kriegaex
Copy link
Contributor Author

See #118 (comment) and the linked ZIP archive, if you need an example project with two modules to play with.

@kriegaex kriegaex added the enhancement New feature or request label Mar 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant