6 Replies Last post: Jul 2, 2014 1:12 PM by Victoria Dumova  
Evgeny Sologubov Newbie 3 posts since
Jun 29, 2014
Currently Being Moderated

Jun 29, 2014 1:09 PM

Newly regenerated workspace.xml ignores my sourceForlder specifications

Hi.

I have the following directory structure specified in my IML:

    <content url="file://$MODULE_DIR$">
      <sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
      <sourceFolder url="file://$MODULE_DIR$/test" isTestSource="true" />
    </content>

It all works fine, but every time I make a clean (without .idea/workspace.xml) source tree checkout from my svn,

those sourceFolder declarations are getting IGNORED and the new workspace.xml contains only the default specifications (src/main/java, src/test/java etc),

so I have to manually reset them back to make everything (tests, to be specific) working again

 

Does anyone have any idea on how to fix this issue in my IDEA 13.1 CE?

Thanks in advance!

Alexander Chernikov JetBrains 1,228 posts since
Jan 11, 2007
Currently Being Moderated
Jul 1, 2014 5:48 PM in response to: Evgeny Sologubov
Re: Newly regenerated workspace.xml ignores my sourceForlder specifications

Hello.

 

Workspace.xml contains a lot of settings for different purposes. Could you specify the component containing these paths? As a sample:

 

  <component name="ArtifactsWorkspaceSettings"> <!-- this is a component -->
    ... <!-- settings in question -->
  </component>

 

Regards,

Alexander.

Alexander Chernikov JetBrains 1,228 posts since
Jan 11, 2007
Currently Being Moderated
Jul 1, 2014 6:46 PM in response to: Evgeny Sologubov
Re: Newly regenerated workspace.xml ignores my sourceForlder specifications

Workspace.xml has no relationship to your problem.

 

Look at the screenshots. In "after" shot the paths specified at right (like src/main/java) are different to ones specified on "before" shot (like src). It means that although .iml content "before" and _at some moment_ "after" was the same, some IDE subsystem has redefined the paths anyway.

 

Do you use gradle? It could be some re-import from gradle.

 

Regards,

Alexander.

Alexander Chernikov JetBrains 1,228 posts since
Jan 11, 2007
Currently Being Moderated
Jul 1, 2014 7:15 PM in response to: Evgeny Sologubov
Re: Newly regenerated workspace.xml ignores my sourceForlder specifications

I'll ask our gradle tester to take a look on this.

 

Alexander.

Victoria Dumova Newbie 19 posts since
Aug 19, 2009
Currently Being Moderated
Jul 2, 2014 1:12 PM in response to: Evgeny Sologubov
Re: Newly regenerated workspace.xml ignores my sourceForlder specifications

Evgeny, .iml files describe module dependencies and content roots. As soon as these items are changed by the means of Gradle, .iml files get regenerates to reflect the changes.

 

Victoria

More Like This

  • Retrieving data ...