Why CompilationTask.getTask(...) automatically creates a folder for output the class files?
<p>I'm doing following to compile my java files. <code>outputFolder</code> is the folder where all my java files are located.</p>

<pre><code>    //specify classes output folder
        Iterable&lt;String&gt; options = Arrays.asList("-d", outputFolder);

        Iterable&lt;? extends JavaFileObject&gt; fileObjects = fileManager.getJavaFileObjects(files);

        JavaCompiler.CompilationTask task = compiler.getTask(null, fileManager,
                listener, options, null, fileObjects);
</code></pre>

<p>It complies perfectly. But, it automatically creates a folder called "test" and spits all class files in there...
Any clue why my program is doing that? Is there any thing that I've missed?</p>

<p>I tried the follwing code too... but still no luck... I got the same result</p>

<pre><code>this.filePath = filePath;
outputFolder = this.filePath;//+ java.io.File.separator +"outputFolder";
classFolder = new File(outputFolder);
if(!classFolder.exists()){
  classFolder.mkdir();
}
fileManager.setLocation(StandardLocation.CLASS_OUTPUT, Arrays.asList(classFolder));
</code></pre>
