Comments (6)
@olamy, would you mind having a look at this PR if you have a few minutes ?
from exec-maven-plugin.
@gnodet LGTM please do a real pr. ATM it's only a change in your fork :-)
from exec-maven-plugin.
from exec-maven-plugin.
It would be great having an unit or integration test for this?
from exec-maven-plugin.
Fair enough, I'll have a look.
from exec-maven-plugin.
I wrote an integration test, but unfortunately, I don't see a good way to make it work.
The reason is that the way I thought about testing that is to run the tty
unix command which returns the name of the terminal device. If the inheritIo
flag works, it should be an existing terminal, else the command returns not a tty
. The problem is that this can only work if the maven process actually has a terminal correctly set up (that's the exact problem I'm trying to solve for the exec'ed process here). So in order for that to work, it would require the maven-invoker-plugin to also be able to inherit the terminal. Furthermore, this would also only work if running from a real terminal, so that automated testing in jenkins or such may not work.
from exec-maven-plugin.
Related Issues (20)
- ClassNotFoundException when dynamically loading a Java class executed by exec-maven-plugin HOT 2
- Non-Uppercase Environment Variables duplicated with an Uppercase version HOT 6
- Idea: Add dll dependencies to java.library.path
- Passing argument -p to java application HOT 1
- Module path can't be defined HOT 1
- An default visibility class, has main method, occurs error on execution HOT 2
- add third execution mode to enable jvm parameters such as --enable-preview HOT 4
- Plugin does not use jdk from toolchains plugin HOT 1
- IOException: Stream closed HOT 2
- Failing to execute goal after upgrading to Java 17 with ExecuteException HOT 1
- mavin plugin file HOT 1
- git submodule status fails with exec-maven-plugin:3.1.0 but succeeds with exec-maven-plugin:1.6.0:exec HOT 2
- Doing several invocations through exec:java? HOT 19
- New option 'blockSystemExit' for 'java' mojo
- Properly handle UnsupportedOperationException thrown by Thread::stop in JDK 20+ HOT 3
- XML DocumentBuilderFactory error after upgrade from 3.0.0 to 3.1.0 HOT 5
- setting MAVEN_OPTS in environment variables does not work
- how to pass command line arguments to exec:java as pom.xml variable/ parameter?
- Shell script execution using "basedir" as argument has problems in Windows
- NullPointerException under Maven 4.0.0-m10 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from exec-maven-plugin.