You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by "Daniel Spiewak (JIRA)" <ji...@apache.org> on 2008/06/07 02:50:46 UTC

[jira] Created: (BUILDR-84) IDE Meta Generation Should Not Require Sources

IDE Meta Generation Should Not Require Sources
----------------------------------------------

                 Key: BUILDR-84
                 URL: https://issues.apache.org/jira/browse/BUILDR-84
             Project: Buildr
          Issue Type: Improvement
          Components: IDE
    Affects Versions: 1.3.2
         Environment: eclipse
            Reporter: Daniel Spiewak


The `eclipse` task (and I assume `idea` as well) requires at least one source file of the relevant type to be found within a source directory.  For example, for project meta generation to succeed, the src/main/java/ directory (and/or subdirectories) must contain at least one .java file.  The same holds for scala.  If these source files are not specified, the task silently fails and just doesn't generate any project meta.

It seems to me that this would be a fairly common use-case: using Buildr to setup a project prior to creating any sources and then doing the actual coding within an IDE.  I would propose that the source autodetection be fixed to just assume that there will be source files within the relevant source dirs if they exist.  At the very least, a warning should be printed regarding the absence of sources and that this prevents IDE meta gen.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (BUILDR-84) IDE Meta Generation Should Not Require Sources

Posted by "Daniel Spiewak (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BUILDR-84?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12603261#action_12603261 ] 

Daniel Spiewak commented on BUILDR-84:
--------------------------------------

You should look for the source directories themselves.  Project Layouts define where each language's source files should go.  Assuming the hierarchies are disjoint (as is the default) it should be possible to just look for the relevant directory and assume that the corresponding language will be required.  For example, if src/main/java/ is present (empty or otherwise), it may be assumed in the default layout that the :javac compiler will be required; thus, Java project metadata should be generated.

> IDE Meta Generation Should Not Require Sources
> ----------------------------------------------
>
>                 Key: BUILDR-84
>                 URL: https://issues.apache.org/jira/browse/BUILDR-84
>             Project: Buildr
>          Issue Type: Improvement
>          Components: IDE
>    Affects Versions: 1.3.2
>         Environment: eclipse
>            Reporter: Daniel Spiewak
>
> The `eclipse` task (and I assume `idea` as well) requires at least one source file of the relevant type to be found within a source directory.  For example, for project meta generation to succeed, the src/main/java/ directory (and/or subdirectories) must contain at least one .java file.  The same holds for scala.  If these source files are not specified, the task silently fails and just doesn't generate any project meta.
> It seems to me that this would be a fairly common use-case: using Buildr to setup a project prior to creating any sources and then doing the actual coding within an IDE.  I would propose that the source autodetection be fixed to just assume that there will be source files within the relevant source dirs if they exist.  At the very least, a warning should be printed regarding the absence of sources and that this prevents IDE meta gen.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (BUILDR-84) IDE Meta Generation Should Not Require Sources

Posted by "Alex Boisvert (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BUILDR-84?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12603260#action_12603260 ] 

Alex Boisvert commented on BUILDR-84:
-------------------------------------

You don't need any source, you can specify which languages you want to use by stating,

compile.using :javac
or 
compile.using :scalac

and similarly for tests,

test.compile.using :javac
or
test.compile.using :scalac

If there are no sources or no indications in the Buildfile, what should we assume?

> IDE Meta Generation Should Not Require Sources
> ----------------------------------------------
>
>                 Key: BUILDR-84
>                 URL: https://issues.apache.org/jira/browse/BUILDR-84
>             Project: Buildr
>          Issue Type: Improvement
>          Components: IDE
>    Affects Versions: 1.3.2
>         Environment: eclipse
>            Reporter: Daniel Spiewak
>
> The `eclipse` task (and I assume `idea` as well) requires at least one source file of the relevant type to be found within a source directory.  For example, for project meta generation to succeed, the src/main/java/ directory (and/or subdirectories) must contain at least one .java file.  The same holds for scala.  If these source files are not specified, the task silently fails and just doesn't generate any project meta.
> It seems to me that this would be a fairly common use-case: using Buildr to setup a project prior to creating any sources and then doing the actual coding within an IDE.  I would propose that the source autodetection be fixed to just assume that there will be source files within the relevant source dirs if they exist.  At the very least, a warning should be printed regarding the absence of sources and that this prevents IDE meta gen.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (BUILDR-84) IDE Meta Generation Should Not Require Sources

Posted by "Alex Boisvert (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/BUILDR-84?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alex Boisvert updated BUILDR-84:
--------------------------------

    Fix Version/s: Wish List

> IDE Meta Generation Should Not Require Sources
> ----------------------------------------------
>
>                 Key: BUILDR-84
>                 URL: https://issues.apache.org/jira/browse/BUILDR-84
>             Project: Buildr
>          Issue Type: Improvement
>          Components: IDE
>    Affects Versions: 1.3.2
>         Environment: eclipse
>            Reporter: Daniel Spiewak
>             Fix For: Wish List
>
>
> The `eclipse` task (and I assume `idea` as well) requires at least one source file of the relevant type to be found within a source directory.  For example, for project meta generation to succeed, the src/main/java/ directory (and/or subdirectories) must contain at least one .java file.  The same holds for scala.  If these source files are not specified, the task silently fails and just doesn't generate any project meta.
> It seems to me that this would be a fairly common use-case: using Buildr to setup a project prior to creating any sources and then doing the actual coding within an IDE.  I would propose that the source autodetection be fixed to just assume that there will be source files within the relevant source dirs if they exist.  At the very least, a warning should be printed regarding the absence of sources and that this prevents IDE meta gen.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (BUILDR-84) IDE Meta Generation Should Not Require Sources

Posted by "Antoine Toulme (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BUILDR-84?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12839387#action_12839387 ] 

Antoine Toulme commented on BUILDR-84:
--------------------------------------

Note that the eclipse task got a overhaul since and now has a good configuration. It is possible to set the natures and builders (even their order) for each project.

AFAIK, the eclipse task still relies on the compile.language to find whether the java nature is needed.

> IDE Meta Generation Should Not Require Sources
> ----------------------------------------------
>
>                 Key: BUILDR-84
>                 URL: https://issues.apache.org/jira/browse/BUILDR-84
>             Project: Buildr
>          Issue Type: Improvement
>          Components: IDE
>    Affects Versions: 1.3.2
>         Environment: eclipse
>            Reporter: Daniel Spiewak
>
> The `eclipse` task (and I assume `idea` as well) requires at least one source file of the relevant type to be found within a source directory.  For example, for project meta generation to succeed, the src/main/java/ directory (and/or subdirectories) must contain at least one .java file.  The same holds for scala.  If these source files are not specified, the task silently fails and just doesn't generate any project meta.
> It seems to me that this would be a fairly common use-case: using Buildr to setup a project prior to creating any sources and then doing the actual coding within an IDE.  I would propose that the source autodetection be fixed to just assume that there will be source files within the relevant source dirs if they exist.  At the very least, a warning should be printed regarding the absence of sources and that this prevents IDE meta gen.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (BUILDR-84) IDE Meta Generation Should Not Require Sources

Posted by "Alex Boisvert (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BUILDR-84?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12603262#action_12603262 ] 

Alex Boisvert commented on BUILDR-84:
-------------------------------------

Ok, got it.  No objections on my part.

> IDE Meta Generation Should Not Require Sources
> ----------------------------------------------
>
>                 Key: BUILDR-84
>                 URL: https://issues.apache.org/jira/browse/BUILDR-84
>             Project: Buildr
>          Issue Type: Improvement
>          Components: IDE
>    Affects Versions: 1.3.2
>         Environment: eclipse
>            Reporter: Daniel Spiewak
>
> The `eclipse` task (and I assume `idea` as well) requires at least one source file of the relevant type to be found within a source directory.  For example, for project meta generation to succeed, the src/main/java/ directory (and/or subdirectories) must contain at least one .java file.  The same holds for scala.  If these source files are not specified, the task silently fails and just doesn't generate any project meta.
> It seems to me that this would be a fairly common use-case: using Buildr to setup a project prior to creating any sources and then doing the actual coding within an IDE.  I would propose that the source autodetection be fixed to just assume that there will be source files within the relevant source dirs if they exist.  At the very least, a warning should be printed regarding the absence of sources and that this prevents IDE meta gen.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (BUILDR-84) IDE Meta Generation Should Not Require Sources

Posted by "Assaf Arkin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BUILDR-84?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12603265#action_12603265 ] 

Assaf Arkin commented on BUILDR-84:
-----------------------------------

If it doesn't break anything else, I don't see reason we can't change the compile task to look for source directories instead of source files.

> IDE Meta Generation Should Not Require Sources
> ----------------------------------------------
>
>                 Key: BUILDR-84
>                 URL: https://issues.apache.org/jira/browse/BUILDR-84
>             Project: Buildr
>          Issue Type: Improvement
>          Components: IDE
>    Affects Versions: 1.3.2
>         Environment: eclipse
>            Reporter: Daniel Spiewak
>
> The `eclipse` task (and I assume `idea` as well) requires at least one source file of the relevant type to be found within a source directory.  For example, for project meta generation to succeed, the src/main/java/ directory (and/or subdirectories) must contain at least one .java file.  The same holds for scala.  If these source files are not specified, the task silently fails and just doesn't generate any project meta.
> It seems to me that this would be a fairly common use-case: using Buildr to setup a project prior to creating any sources and then doing the actual coding within an IDE.  I would propose that the source autodetection be fixed to just assume that there will be source files within the relevant source dirs if they exist.  At the very least, a warning should be printed regarding the absence of sources and that this prevents IDE meta gen.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (BUILDR-84) IDE Meta Generation Should Not Require Sources

Posted by "lacton (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BUILDR-84?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12638854#action_12638854 ] 

lacton commented on BUILDR-84:
------------------------------

Sean,

I created BUILDR-171 for the issue you raised.

> IDE Meta Generation Should Not Require Sources
> ----------------------------------------------
>
>                 Key: BUILDR-84
>                 URL: https://issues.apache.org/jira/browse/BUILDR-84
>             Project: Buildr
>          Issue Type: Improvement
>          Components: IDE
>    Affects Versions: 1.3.2
>         Environment: eclipse
>            Reporter: Daniel Spiewak
>
> The `eclipse` task (and I assume `idea` as well) requires at least one source file of the relevant type to be found within a source directory.  For example, for project meta generation to succeed, the src/main/java/ directory (and/or subdirectories) must contain at least one .java file.  The same holds for scala.  If these source files are not specified, the task silently fails and just doesn't generate any project meta.
> It seems to me that this would be a fairly common use-case: using Buildr to setup a project prior to creating any sources and then doing the actual coding within an IDE.  I would propose that the source autodetection be fixed to just assume that there will be source files within the relevant source dirs if they exist.  At the very least, a warning should be printed regarding the absence of sources and that this prevents IDE meta gen.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (BUILDR-84) IDE Meta Generation Should Not Require Sources

Posted by "Sean Ahn (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BUILDR-84?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12636499#action_12636499 ] 

Sean Ahn commented on BUILDR-84:
--------------------------------

I have a project that does not have src/main/java folder. Instead, it has src/test/java and unit tests written in java under that subdirectory. The eclipse task does not generate project meta for this project. I'm not sure if it's related to this issue.

> IDE Meta Generation Should Not Require Sources
> ----------------------------------------------
>
>                 Key: BUILDR-84
>                 URL: https://issues.apache.org/jira/browse/BUILDR-84
>             Project: Buildr
>          Issue Type: Improvement
>          Components: IDE
>    Affects Versions: 1.3.2
>         Environment: eclipse
>            Reporter: Daniel Spiewak
>
> The `eclipse` task (and I assume `idea` as well) requires at least one source file of the relevant type to be found within a source directory.  For example, for project meta generation to succeed, the src/main/java/ directory (and/or subdirectories) must contain at least one .java file.  The same holds for scala.  If these source files are not specified, the task silently fails and just doesn't generate any project meta.
> It seems to me that this would be a fairly common use-case: using Buildr to setup a project prior to creating any sources and then doing the actual coding within an IDE.  I would propose that the source autodetection be fixed to just assume that there will be source files within the relevant source dirs if they exist.  At the very least, a warning should be printed regarding the absence of sources and that this prevents IDE meta gen.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.