facebook

duplicate buildCommand tags in .project file [Closed]

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #208665 Reply

    navis
    Member

    Hi,

    When i ran Build project, the xodclet-build.xml was getting run multiple times. My Eclipse got hanged. OutOfMemoryError. I thought this is 1 time problem. Closed Eclipse and started again.

    Still the same problem. Then i started probing and found the problem in .project file.

    Please find attached the .project file.

    If you notice carefully, that the following tag is repeated several times. Now, when i build the project, Eclipse will invoke this command repetetively and hogs up entire memory till the time it throws OutOf MemoryError. I can’t understand why there are repeated tags.

    When i remove all those extra tags and ran the “build project”. It works excellent. No OutOfMemory Error.

    =========================
    <buildCommand>
    <name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>
    <arguments>
    <dictionary>
    <key>LaunchConfigHandle</key>
    <value><?xml version="1.0"encoding="UTF-8"?>
    <launchConfiguration local="false" path="/ShopWeb/.externalToolBuilders/XDoclet Builder.launch"/>
    </value>
    </dictionary>
    </arguments>
    </buildCommand>
    ===========================

    Now, i wonder why and how those extra tags got added?

    This is a serious problem for me as i just noticed this problem in 3 of my .project files. In other 2 .project files, there was only 1 duplicate tag so i didn’t notice.

    Please clear this issue. Hope to hear soon.

    #208668 Reply

    navis
    Member

    btw, how can i attach a file?

    Anyway, it is inline here.

    ====================================
    <?xml version=”1.0″ encoding=”UTF-8″?>
    <projectDescription>
    <name>ShopWeb</name>
    <comment></comment>
    <projects>
    </projects>
    <buildSpec>
    <buildCommand>
    <name>com.genuitec.eclipse.j2eedt.core.WebClasspathBuilder</name>
    <arguments>
    </arguments>
    </buildCommand>
    <buildCommand>
    <name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>
    <arguments>
    <dictionary>
    <key>LaunchConfigHandle</key>
    <value><?xml version="1.0" encoding="UTF-8"?>
    <launchConfiguration local="false" path="/ShopWeb/.externalToolBuilders/XDoclet Builder.launch"/>
    </value>
    </dictionary>
    </arguments>
    </buildCommand>

    <buildCommand>
    <name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>
    <arguments>
    <dictionary>
    <key>LaunchConfigHandle</key>
    <value><?xml version="1.0" encoding="UTF-8"?>
    <launchConfiguration local="false" path="/ShopWeb/.externalToolBuilders/XDoclet Builder.launch"/>
    </value>
    </dictionary>
    </arguments>
    </buildCommand>
    <buildCommand>
    <name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>
    <arguments>
    <dictionary>
    <key>LaunchConfigHandle</key>
    <value><?xml version="1.0" encoding="UTF-8"?>
    <launchConfiguration local="false" path="/ShopWeb/.externalToolBuilders/XDoclet Builder.launch"/>
    </value>
    </dictionary>
    </arguments>
    </buildCommand>
    <buildCommand>
    <name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>
    <arguments>
    <dictionary>
    <key>LaunchConfigHandle</key>
    <value><?xml version="1.0" encoding="UTF-8"?>
    <launchConfiguration local="false" path="/ShopWeb/.externalToolBuilders/XDoclet Builder.launch"/>
    </value>
    </dictionary>
    </arguments>
    </buildCommand>
    <buildCommand>
    <name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>
    <arguments>
    <dictionary>
    <key>LaunchConfigHandle</key>
    <value><?xml version="1.0" encoding="UTF-8"?>
    <launchConfiguration local="false" path="/ShopWeb/.externalToolBuilders/XDoclet Builder.launch"/>
    </value>
    </dictionary>
    </arguments>
    </buildCommand>
    <buildCommand>
    <name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>
    <arguments>
    <dictionary>
    <key>LaunchConfigHandle</key>
    <value><?xml version="1.0" encoding="UTF-8"?>
    <launchConfiguration local="false" path="/ShopWeb/.externalToolBuilders/XDoclet Builder.launch"/>
    </value>
    </dictionary>
    </arguments>
    </buildCommand>
    <buildCommand>
    <name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>
    <arguments>
    <dictionary>
    <key>LaunchConfigHandle</key>
    <value><?xml version="1.0" encoding="UTF-8"?>
    <launchConfiguration local="false" path="/ShopWeb/.externalToolBuilders/XDoclet Builder.launch"/>
    </value>
    </dictionary>
    </arguments>
    </buildCommand>
    <buildCommand>
    <name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>
    <arguments>
    <dictionary>
    <key>LaunchConfigHandle</key>
    <value><?xml version="1.0" encoding="UTF-8"?>
    <launchConfiguration local="false" path="/ShopWeb/.externalToolBuilders/XDoclet Builder.launch"/>
    </value>
    </dictionary>
    </arguments>
    </buildCommand>
    <buildCommand>
    <name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>
    <arguments>
    <dictionary>
    <key>LaunchConfigHandle</key>
    <value><?xml version="1.0" encoding="UTF-8"?>
    <launchConfiguration local="false" path="/ShopWeb/.externalToolBuilders/XDoclet Builder.launch"/>
    </value>
    </dictionary>
    </arguments>
    </buildCommand>
    <buildCommand>
    <name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>
    <arguments>
    <dictionary>
    <key>LaunchConfigHandle</key>
    <value><?xml version="1.0" encoding="UTF-8"?>
    <launchConfiguration local="false" path="/ShopWeb/.externalToolBuilders/XDoclet Builder.launch"/>
    </value>
    </dictionary>
    </arguments>
    </buildCommand>
    <buildCommand>
    <name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>
    <arguments>
    <dictionary>
    <key>LaunchConfigHandle</key>
    <value><?xml version="1.0" encoding="UTF-8"?>
    <launchConfiguration local="false" path="/ShopWeb/.externalToolBuilders/XDoclet Builder.launch"/>
    </value>
    </dictionary>
    </arguments>
    </buildCommand>
    <buildCommand>
    <name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>
    <arguments>
    <dictionary>
    <key>LaunchConfigHandle</key>
    <value><?xml version="1.0" encoding="UTF-8"?>
    <launchConfiguration local="false" path="/ShopWeb/.externalToolBuilders/XDoclet Builder.launch"/>
    </value>
    </dictionary>
    </arguments>
    </buildCommand>
    <buildCommand>
    <name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>
    <arguments>
    <dictionary>
    <key>LaunchConfigHandle</key>
    <value><?xml version="1.0" encoding="UTF-8"?>
    <launchConfiguration local="false" path="/ShopWeb/.externalToolBuilders/XDoclet Builder.launch"/>
    </value>
    </dictionary>
    </arguments>
    </buildCommand>
    <buildCommand>
    <name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>
    <arguments>
    <dictionary>
    <key>LaunchConfigHandle</key>
    <value><?xml version="1.0" encoding="UTF-8"?>
    <launchConfiguration local="false" path="/ShopWeb/.externalToolBuilders/XDoclet Builder.launch"/>
    </value>
    </dictionary>
    </arguments>
    </buildCommand>
    <buildCommand>
    <name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>
    <arguments>
    <dictionary>
    <key>LaunchConfigHandle</key>
    <value><?xml version="1.0" encoding="UTF-8"?>
    <launchConfiguration local="false" path="/ShopWeb/.externalToolBuilders/XDoclet Builder.launch"/>
    </value>
    </dictionary>
    </arguments>
    </buildCommand>
    <buildCommand>
    <name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>
    <arguments>
    <dictionary>
    <key>LaunchConfigHandle</key>
    <value><?xml version="1.0" encoding="UTF-8"?>
    <launchConfiguration local="false" path="/ShopWeb/.externalToolBuilders/XDoclet Builder.launch"/>
    </value>
    </dictionary>
    </arguments>
    </buildCommand>
    <buildCommand>
    <name>org.eclipse.jdt.core.javabuilder</name>
    <arguments>
    </arguments>
    </buildCommand>
    <buildCommand>
    <name>com.genuitec.eclipse.j2eedt.core.J2EEProjectValidator</name>
    <arguments>
    </arguments>
    </buildCommand>
    <buildCommand>
    <name>com.genuitec.eclipse.j2eedt.core.DeploymentDescriptorValidator</name>
    <arguments>
    </arguments>
    </buildCommand>
    <buildCommand>
    <name>de.bb.bje.eclipse.IncrementalJspBuilder</name>
    <arguments>
    </arguments>
    </buildCommand>
    <buildCommand>
    <name>com.genuitec.eclipse.ast.deploy.core.DeploymentBuilder</name>
    <arguments>
    </arguments>
    </buildCommand>
    </buildSpec>
    <natures>
    <nature>com.genuitec.eclipse.ast.deploy.core.deploymentnature</nature>
    <nature>com.genuitec.eclipse.j2eedt.core.webnature</nature>
    <nature>org.eclipse.jdt.core.javanature</nature>
    <nature>com.genuitec.eclipse.cross.easystruts.eclipse.easystrutsnature</nature>
    </natures>
    </projectDescription>

    #208670 Reply

    Riyad Kalla
    Member

    Navjot,
    This is very strange, we will look into it ASAP. Thank you for the report.

    #208686 Reply

    Scott Anderson
    Participant

    This looks like a case of an API behaving differently in 3.0 than it did in 2.1. I’ve logged it as a bug so we can fix it before the next beta. If you have any more details on exactly when the new buildsers get added, that would be great.

    #208725 Reply

    navis
    Member

    I have just cleared all the duplicate tags. I will keep a close eye if i observe the behaviour again.
    Now sure, but may be it has something to do with “project references” / project dependencies.

    Will revert ifget across somehting very concrete.

    #208738 Reply

    Riyad Kalla
    Member

    Thank you for the help finding this Navjot.

    #209819 Reply

    Riyad Kalla
    Member

    Fixed in 3.8Beta2.

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: duplicate buildCommand tags in .project file [Closed]

You must be logged in to post in the forum log in