Comments (8)
The 'Building Gradle Model' execution wipes out the console output of the task Gradle task that I was interested in.
I don't think that it does, gradle tooling uses upto 9 consoles to dump output into for each time it runs builds or tasks. So although most likely the most recent console is the one that pops to the front you should be able to still get back to the previous one from the console view's pull down menu.
Does this work for you?
from eclipse-integration-gradle.
I don't see any Gradle Console sessions in the Console View -> Display Selected Console Dropdown.
from eclipse-integration-gradle.
Other than the one from the Building Gradle Model that is
from eclipse-integration-gradle.
That is odd. Here's a screenshot what it should look like after two model builds and one task execution. Maybe something peculiar about how you are doing things make this break. How exactly are you getting this task executed? Provide detailed instructions and I'll try to reproduce it.
from eclipse-integration-gradle.
OK, I think I have it where it's fairly simple but repeatable:
-
I set up a brand new Gradle Project -> flat-java-multiproject
-
In the product sub-project create a new File called Builder.xml with this content:
<?xml version="1.0" encoding="UTF-8"?> <project name="Builder" default="target1" basedir="."> <target name="clean"> </target> <target name="target1" depends="clean" description="build stuff"> </target> </project>
-
Rt Click product project -> properties -> Builders -> New -> Ant Builder
a) Set Builderfile: ${workspace_loc:/product/Builder.xml}
b) Set Base Directory: ${workspace_loc:/product}
c) OK, OK (to save builder) -
Double Click Gradle Task View -> build
*Works as expected -
Rt Click product project -> properties -> Builders -> New_Builder -> Edit...
a) On Targets Tab -> Set Auto Build:<default target selected>
b) OK, OK (to save builder) -
Double Click Gradle Task View -> build
! You can see the build output scroll by, then the Builder executes, Console View no longer contains output from build task
This is not necessary to see the issue, but this is how our production builder is set up:
6) Rt Click product project -> properties -> Builders -> New_Builder -> Edit...
a) On Build Options Tab -> Uncheck Allocate Console
b) OK, OK (to save builder)
- Double Click Gradle Task View -> build
! You can see the build output scroll by, then the Builder executes, Console View no longer contains output from build task
from eclipse-integration-gradle.
Okay I am able to reproduce it. I see now what is happening. But I'm not sure there is much I can do about this. The problem seems to be that the ant-builder is replacing the current console with its own output. There's not much that I can really do about that since its not the Gradle tooling doing this.
I can even reproduce this by just doing "run as Ant Build" on the builder.xml file. This replaces the contents of the latest / current console with ants output.
I'll think about it some more, but I can't really see a solution. Maybe this is really a problem that should be fixed in the ant builder.
from eclipse-integration-gradle.
Closed this. Unless you have a good idea how I can stop ant tools from 'clobbering' our output, there's not much I can do.
from eclipse-integration-gradle.
No, thanks for looking.
from eclipse-integration-gradle.
Related Issues (20)
- Could not find tools.jar HOT 1
- “refresh all” update the eclipse .project file by force
- Classpath sorting removes test folder HOT 1
- Gradle-STS-to-Buildship message HOT 2
- Fail to initialize EclipseModelBuilder in gradle 2.14.1 if "Use Custom Tooling Model" is checked. HOT 4
- Alternative Update Sites Link To AccessDenied XML HOT 1
- import Gradle project HOT 1
- Trying to import project HOT 1
- Tooling API version older than 3.0 in sts 3.9.1.201710100515-RELEASE HOT 2
- Mark Gradle's build directories as derived resources HOT 3
- http proxy Ineffective HOT 5
- ":..:DependentProject" not supported in settings.gradle HOT 1
- I don't have an extension tab HOT 2
- Gradle IDE upgrade from 3.6.4 to 3.7.0 fails for missing dependencies HOT 4
- What is the roadmap for this plugin with the presence of the BuildShip plugin? HOT 2
- Remap Jars to Gradle Projects ignores version HOT 5
- Offline installation requires HOT 4
- Gradle plugin trying to download gradle.zip from internet even though Gradle Home pointed to local folder HOT 6
- "Updating Gradle Classpath" happens during/after "Building workspace" HOT 1
- NPE during Eclipse Gradle project refresh HOT 3
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 eclipse-integration-gradle.