Git Product home page Git Product logo

Comments (8)

kdvolder avatar kdvolder commented on April 27, 2024

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.

ryan-bever avatar ryan-bever commented on April 27, 2024

I don't see any Gradle Console sessions in the Console View -> Display Selected Console Dropdown.

from eclipse-integration-gradle.

ryan-bever avatar ryan-bever commented on April 27, 2024

Other than the one from the Building Gradle Model that is

from eclipse-integration-gradle.

kdvolder avatar kdvolder commented on April 27, 2024

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.
console-pulldown

from eclipse-integration-gradle.

ryan-bever avatar ryan-bever commented on April 27, 2024

OK, I think I have it where it's fairly simple but repeatable:

  1. I set up a brand new Gradle Project -> flat-java-multiproject

  2. 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>

image

  1. 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)

  2. Double Click Gradle Task View -> build
    *Works as expected

  3. 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)

  4. 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)

  1. 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.

kdvolder avatar kdvolder commented on April 27, 2024

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.

kdvolder avatar kdvolder commented on April 27, 2024

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.

ryan-bever avatar ryan-bever commented on April 27, 2024

No, thanks for looking.

from eclipse-integration-gradle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.