java - IntelliJ plugin creates files in wrong folder -


i've started work on else's codebase developing intellij plugin. uses apache commons fileutils class create files retrieved external service. service provides relative path file (e.g. src/stuff/file.txt) , contents strings, used create file.

when debug plugin, files created using fileutils.writestringtofile, instead of in current project, end in intellij ide install directory (c:\program files (x86)\jetbrains\intellij idea community edition 14.1.2\bin)

is there setting i've missed or have current project's source directory in code somehow?

update happening plugin lets me create new module type. this, steps added modulewizard. 1 of these steps involves selecting, downloading , creating files used in project. when wizard has run through custom steps, ends asking project name , directory (this seems default module step provided intellij?). means @ time project files downloaded, project root did not exist files located in default folder somewhere. documentation on seems scarce, there way add step after project name/directory one?


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -