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

ibazel_notify_changes ? #3

Open
schmitch opened this issue Apr 23, 2018 · 3 comments
Open

ibazel_notify_changes ? #3

schmitch opened this issue Apr 23, 2018 · 3 comments

Comments

@schmitch
Copy link

Is there a way to configure 'ibazel_notify_changes'?
Currently ibazel can be configured that the Binary is only notified for File Changes and does not restart on it's own. I'm currently looking in creating a small launcher for Playframework and I try to actually only rebuild my bazel target if a file changes and just try to swap the Classpath, as Play does with sbt.

@softprops
Copy link
Contributor

Hi @schmitch. I'm not sure I understand. Rebazel will by default watch for changes to the input files a target depends on and retriggers an action when they change. What would you like to see in addition to that?

@schmitch
Copy link
Author

i.e. if I call
ibazel run //:mytarget and the target has a label called ibazel_notify_changes
than ibazel will rebuild the target but not restart the target i.e. consider a java programm:

public class HelloWorld 
{
       public static void main (String[] args)
       {
             System.out.println("Hello World!");
       }
}

it will only print "Hello World!" and if I edit it to "Hello NAME!" it won't print "Hello NAME!" instead it will actually just rebuild the java source file to a new jar and than it will send "BUILD COMPLETED" to the stdin of the current program.

So basically a Java Program could listen via new BufferedReader(new InputStreamReader(System.in)) to new input and if a input comes in it could just reload the ClassLoader, so it could actually Hot Reload a Webserver.

@softprops
Copy link
Contributor

Oh I see. Thanks for clarifying

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

No branches or pull requests

2 participants