[GRADLE-1390] Default output folder is always set to bin instead of sourceSets.main.classesDir Created: 18/Feb/11  Updated: 04/Jan/13  Resolved: 23/Feb/11

Status: Resolved
Project: Gradle
Affects Version/s: 0.9.2
Fix Version/s: 1.0-milestone-1

Type: Bug
Reporter: Simon Harrer Assignee: Peter Niederwieser
Resolution: Fixed Votes: 0

Attachments: Zip Archive test_default_dir.zip    

 Description   

According to the docs http://www.gradle.org/0.9.2/docs/dsl/org.gradle.plugins.eclipse.EclipseClasspath.html the default output directory is project.sourceSets.main.classesDir.

<excerpt>
File defaultOutputDir
The default output directory for eclipse generated files, eg classes.

Default with eclipse and java plugins:
project.sourceSets.main.classesDir
</excerpt>

However, in the source code, in EclipsePlugin.groovy line 102,
conventionMapping.defaultOutputDir =

{ new File(project.projectDir, 'bin') }

is set.

A test according to the docs is appended in the zip file. just run gradle testClasspath to invoke the task which asserts the generated output path within the .classpath file.



 Comments   
Comment by Peter Niederwieser [ 18/Feb/11 ]

This is intentional (see GRADLE-1305). Will have to check why the DSL guide isn't up-to-date.

Comment by Peter Niederwieser [ 23/Feb/11 ]

DSL docs for the EclipseClasspath task have been fixed.

Generated at Wed Jun 30 11:54:20 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.