You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Inspecting the haxelib code, i draft a possible way to solve the issue (if there isn't already another way that i didn't find out):
haxelib.api.ScriptRunner is responsible for running the projects (at the run method).
The run method receives a LibraryRunData. However this data does not contains the classPath info.
So i think that the LibraryRunData could be changed to carry the project classPath (could be set from GlobalScope.runScript method).
Then, the classPath would need to be carried out to the generateScript function,
problably through Script, which would need to be changed to include that data.
What do you think about the idea to adding this feature?
Note: i know that i can compile run.n (using neko) to solve my problem. But i think would be better and easier if we could directly specify the main class at the haxelib.json.
The text was updated successfully, but these errors were encountered:
When trying to create a runnable library, i noticed that haxelib ignores the classPath at haxelib.json for running the library.
So, if my code is under a
src
directory, looks like i cannot specify my main class atmain
property or import this class from a Run.hx or similar.Consider for example this structure for a project:
I would like to use a haxelib.json similar to the following one in order to run the
myproject.Main
class:Inspecting the haxelib code, i draft a possible way to solve the issue (if there isn't already another way that i didn't find out):
haxelib.api.ScriptRunner
is responsible for running the projects (at the run method).The run method receives a
LibraryRunData
. However this data does not contains the classPath info.So i think that the
LibraryRunData
could be changed to carry the project classPath (could be set from GlobalScope.runScript method).Then, the classPath would need to be carried out to the generateScript function,
problably through Script, which would need to be changed to include that data.
What do you think about the idea to adding this feature?
Note: i know that i can compile run.n (using neko) to solve my problem. But i think would be better and easier if we could directly specify the main class at the haxelib.json.
The text was updated successfully, but these errors were encountered: