BUG ?: Unable to create a folder in resource directory.

I am using EAP 94.585

I have a project that was imported into IJ from Maven.
For the 'xform' module I have marked the
directories: xform/src/test/java & xform/src/test/resources as test sources.

I am unable to create a directory using IJ under xform/src/test/resources/xml
using right-click->New->package since IJ tries to validate the name using Java package rules.

I am reasonably sure I have done this using IJ 8 or IJ 7 before for this project.

Am I making a mistake by marking the 'resources' directory as a testing sources ?
That directry has files used for unit testing that needs to be copied to the output directory inorder for the tests to run.

2 comments

Hello Rob,

You can create a folder. IDEA warns you that the directory is not a valid
package name, but it doesn't prevent you from creating it.

I am using EAP 94.585

I have a project that was imported into IJ from Maven.
For the 'xform' module I have marked the
directories: xform/src/test/java & xform/src/test/resources as test
sources.
I am unable to create a directory using IJ under
xform/src/test/resources/xml using right-click->New->package since IJ
tries to validate the name using Java package rules.

I am reasonably sure I have done this using IJ 8 or IJ 7 before for
this project.

Am I making a mistake by marking the 'resources' directory as a
testing sources ?

That directry has files used for unit testing that needs to be copied
to the output directory inorder for the tests to run.

---
Original message URL:
http://www.jetbrains.net/devnet/message/5259154#5259154

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Thanks, I unmarked my 'resources' directory as a source and now IntelliJ doesn't validate the directory name.

-Rob

0

Please sign in to leave a comment.