Minor Gordon/Watson/Contr/i...@ibmus wrote on 11/30/2010 09:43:58 PM:

> Hi all,
> 
> Is there some way to tell x10c (the Java back end) to put the generated 
> .java files in a separate directory from the final .class files? Without 

> using '-c' and compiling the source individually? I only see the -d 
> option, which puts them both in the same directory, but it's quite 
> possible I've overlooked another option.
> 
> I'd like to have a build/intermediate directory with all the .java files 

> and an output directory with the .class files. With x10c++ I can do this 

> by specifying -o output file and -d intermediate directory, and the 
> compiler will put the generated .cc's in the latter.

Technically, you can use the -post option to do what you want, but it's
cumbersome.  You'd need something like (on MacOS):

/Users/igor/x10/x10.dist/bin/x10c -d generated_java -post 'java -jar 
/Users/igor/x10/x10.dist/lib/ecj.jar -1.5 -nowarn -classpath 
generated_java:.:/Users/igor/x10/x10.dist/lib/x10.jar -d 
generated_classfiles' Foo.x10

Hope this helps,
        Igor
-- 
Igor Peshansky  (note the spelling change!)
IBM T.J. Watson Research Center
X10: Parallel Productivity and Performance (http://x10-lang.org/)
XJ: No More Pain for XML's Gain (http://www.research.ibm.com/xj/)
"I hear and I forget.  I see and I remember.  I do and I understand" -- 
Xun Zi


------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users

Reply via email to