-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5e35991
commit 5d98d3d
Showing
70 changed files
with
1,606 additions
and
294 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
...yment/src/main/java/io/quarkus/deployment/builditem/RawCommandLineArgumentsBuildItem.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package io.quarkus.deployment.builditem; | ||
|
||
import java.util.function.Supplier; | ||
|
||
import io.quarkus.builder.item.SimpleBuildItem; | ||
import io.quarkus.deployment.recording.BytecodeRecorderImpl; | ||
import io.quarkus.runtime.StartupContext; | ||
|
||
/** | ||
* A build item that represents the raw command line arguments as they were passed to the application. | ||
* | ||
* No filtering is done on these parameters. | ||
*/ | ||
public final class RawCommandLineArgumentsBuildItem extends SimpleBuildItem | ||
implements BytecodeRecorderImpl.ReturnedProxy, Supplier<String[]> { | ||
|
||
@Override | ||
public String __returned$proxy$key() { | ||
return StartupContext.RAW_COMMAND_LINE_ARGS; | ||
} | ||
|
||
@Override | ||
public boolean __static$$init() { | ||
return true; | ||
} | ||
|
||
@Override | ||
public String[] get() { | ||
throw new IllegalStateException("Can only be called at runtime"); | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...a/io/quarkus/dev/ClassLoaderCompiler.java → ...s/deployment/dev/ClassLoaderCompiler.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package io.quarkus.dev; | ||
package io.quarkus.deployment.dev; | ||
|
||
import java.io.File; | ||
import java.io.IOException; | ||
|
2 changes: 1 addition & 1 deletion
2
...a/io/quarkus/dev/CompilationProvider.java → ...s/deployment/dev/CompilationProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...in/java/io/quarkus/dev/CompilerFlags.java → ...quarkus/deployment/dev/CompilerFlags.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...dev/HotDeploymentConfigFileBuildStep.java → ...dev/HotDeploymentConfigFileBuildStep.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package io.quarkus.dev; | ||
package io.quarkus.deployment.dev; | ||
|
||
import java.util.List; | ||
import java.util.Map; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../quarkus/dev/JavaCompilationProvider.java → ...ployment/dev/JavaCompilationProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package io.quarkus.dev; | ||
package io.quarkus.deployment.dev; | ||
|
||
import java.io.File; | ||
import java.io.IOException; | ||
|
38 changes: 38 additions & 0 deletions
38
core/deployment/src/main/java/io/quarkus/deployment/dev/LauncherMain.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package io.quarkus.deployment.dev; | ||
|
||
import java.io.File; | ||
import java.net.URL; | ||
import java.nio.file.Files; | ||
import java.nio.file.Path; | ||
import java.util.Collections; | ||
|
||
import org.eclipse.microprofile.config.spi.ConfigProviderResolver; | ||
|
||
import io.smallrye.config.SmallRyeConfigProviderResolver; | ||
|
||
/** | ||
* The entry point when launched from an IDE | ||
*/ | ||
public class LauncherMain { | ||
|
||
public static void main(Path appClasses, Path wiring, URL[] classPath, String... args) throws Exception { | ||
DevModeContext context = new DevModeContext(); | ||
context.setAbortOnFailedStart(true); | ||
context.setTest(false); | ||
context.setCacheDir(Files.createTempDirectory("quarkus-cache").toFile()); | ||
context.setSourceEncoding("UTF-8"); | ||
File appClassesFile = appClasses.toFile(); | ||
context.getClassesRoots().add(appClassesFile); | ||
|
||
//TODO: huge hacks | ||
File src = new File(appClassesFile, "../../src/main/java"); | ||
File res = new File(appClassesFile, "../../src/main/resources"); | ||
|
||
context.getModules().add(new DevModeContext.ModuleInfo("main", new File("").getAbsolutePath(), | ||
Collections.singleton(src.getAbsolutePath()), appClassesFile.getAbsolutePath(), res.getAbsolutePath())); | ||
//the loading of this is super wierd, and does its own class loader delegation for some reason | ||
ConfigProviderResolver.setInstance(new SmallRyeConfigProviderResolver()); | ||
DevModeMain main = new DevModeMain(context); | ||
main.start(); | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
.../quarkus/dev/RuntimeUpdatesProcessor.java → ...ployment/dev/RuntimeUpdatesProcessor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.