[
https://issues.jboss.org/browse/ISPN-1079?page=com.atlassian.jira.plugin....
]
Dan Berindei commented on ISPN-1079:
------------------------------------
Sanne, I actually used your script for a while, but what you see as a benefit was a
problem for me: I always forgot to commit files and then had to do the build again. Plus
it always created a fresh clone, and I wanted to compile as little as possible.
I was hoping I could set two different target directories so that I could build/debug from
IntelliJ and switch between master and 4.2.x without having to recompile all the classes.
That turned out to be impossible because git always sets the file timestamp to the
checkout time, so even if the classes existed they were ignored.
I've even tried using two separate repositories instead for a while, but it's
quite a bit of work synchronizing them (especially if you want to avoid going through
github all the time).
In the end I guess just
<buildDirectory>${ramdisk}/${project.basedir}</buildDirectory> is good enough
for me, although I haven't been able to make it work in Eclipse yet (it doesn't
like build directories outside the project). So I'll go ahead and resolve the issue
(the pull request was handled already).
Allow users to specify a build directory
----------------------------------------
Key: ISPN-1079
URL:
https://issues.jboss.org/browse/ISPN-1079
Project: Infinispan
Issue Type: Enhancement
Reporter: Dan Berindei
Assignee: Dan Berindei
Priority: Optional
Fix For: 4.2.2.BETA1, 5.0.0.CR4
If a user wants to speed up the build by compiling to a ramdisk, he should be able to set
the build directory in ~/.m2/settings.xml, something like this:
<settings>
<profiles>
<profile>
<properties>
<buildDirectory>/tmp/privatebuild/${project.basedir}/${project.version}</buildDirectory>
</properties>
</profile>
</profiles>
</settings>
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira