[ant-contrib - Help] cc outfile not consistant

"SourceForge.net" <[email protected]>
Newsgroups gmane.comp.java.ant-contrib.devel
Message-ID <[email protected]>
Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=4302448
By: mike-al

I've come to learn that when you specify an "outfile" in the cc task, the task
may modify the actual outfile by adding a prefix and/or extension.  Keyword:
"may".  This seems absurd to me.  In my post-compile I have to create a symbolic
link to the outfile.  How am I supposed to create a symbolic link to a file
I'm not guaranteed to know the exact name of?  Not to mention run-time scripts
that need to call the executable name, or other apps that need to link in a
library I create.  Adding prefixes and postfixes to the outfile is a nice feature
if and only if its guaranteed every time.  Otherwise it will do more harm then
good.

Does anyone know how to guarantee your outfile will remain what you specify?
When compiling/linking a library, I added my own prefix (lib) and extension
(.a) to my outfile, and the cc-task still added its own prefix and extension.
So the target ended up being named: liblibMyLib.a.a.  And when I compile/link
an executable, cc task does not add the .exe extension.  So should I add my
own .exe extenstion?  Only to find out on some other platform cc-task will add
as well?  No consistancy.

FYI, at the moment, I'm doing all my compiling on a Unix w/s, using Solaris-8.



______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=113701

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.