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

Import function enhancements #37

Closed
ProjectMoon opened this issue May 1, 2011 · 3 comments
Closed

Import function enhancements #37

ProjectMoon opened this issue May 1, 2011 · 3 comments

Comments

@ProjectMoon
Copy link
Owner

It would be nice to allow the import function to import more than files. If I come up with a file format for describing a namespace, we could import that and have import execute all files inside it. It would also be lovely to enable Maven repository downloading. Perhaps use Ivy for this task.

Import Paths

The import function should have a paths property of type list. This property will be searched for finding places to import the specified file. It will default to the current working directory and the location of the standard library. The import function should also implicitly add .eve if a file passed to it does not have .eve on the end of it.

Maven Repositories

This could be much more difficult, but it is worth it. Given a URI like mvn://commons-cli/commons-cli/1.2, it should download the dependency and add it to the classpath at runtimme. We can probably use Ivy's Java API for this, although I understand it is difficult to use.

@ProjectMoon
Copy link
Owner Author

Can probably also optimize import statement to use EveCore#run(Script). The code looks to be an exact copy.

@ProjectMoon
Copy link
Owner Author

Don't think namespace import is really all that necessary...

@ProjectMoon
Copy link
Owner Author

Closing, and moving paths functionality to a global variable.

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

No branches or pull requests

1 participant