Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Java Programmer > Re: dependency ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 22 of 29 Topic 52646 of 55513
Post > Topic >>

Re: dependency scanner

by Lew <lew@[EMAIL PROTECTED] > May 12, 2008 at 10:50 AM

Rex Mottram wrote:
> Lew wrote:
>> Aryeh M. Friedman wrote:
>>> C does at least has a trivial way to find depends (#include)
>>
>> Huh?  What does #include have to do with managing object file 
>> dependencies?
>>
>> If you recompile foo.c and bar.o depends on foo.o, nothing in C is 
>> going to help you figure that one out, via #include or otherwise.  You 
>> need make for that.
>>
>> #include is a *pre*-processing step; it happens before the compilation 
>> even looks at the source code.  There is no equivalent in Java.  The 
>> 'im****t' directive does not include anything at all; it just helps the 
>> compiler with name resolution.
> 
> What he means is that some compilers (such as gcc) have sup****t for 
> generating dependency information based on #include statements. IIRC the

> -M flag will cause gcc to write out a file describing what objects 
> depend on what source files based on the knowledge it obtains through 
> parsing. BTW there used to be a similar tool for Java (JavaDeps?) but I 
> have no idea if it's still around.

In Java you would accomplish that most easily by compiling the source 
(equivalent to "knowledge it obtains through parsing" in your example),
using 
the built-in compilation libraries if being done programmatically, then 
building your dependency tree off the declarations in the bytecode, which
will 
all use FQNs.

-- 
Lew
 




 29 Posts in Topic:
dependency scanner
"Aryeh M. Friedman&q  2008-05-11 11:03:34 
Re: dependency scanner
ram@[EMAIL PROTECTED] (S  2008-05-11 15:14:17 
Re: dependency scanner
Lew <lew@[EMAIL PROTEC  2008-05-11 11:24:08 
Re: dependency scanner
=?ISO-8859-1?Q?Arne_Vajh=  2008-05-11 13:19:25 
Re: dependency scanner
"Mike Schilling"  2008-05-11 11:57:54 
Re: dependency scanner
=?ISO-8859-1?Q?Arne_Vajh=  2008-05-11 14:59:07 
Re: dependency scanner
"Mike Schilling"  2008-05-11 12:09:55 
Re: dependency scanner
Lew <lew@[EMAIL PROTEC  2008-05-11 15:49:11 
Re: dependency scanner
=?ISO-8859-1?Q?Arne_Vajh=  2008-05-11 17:35:14 
Re: dependency scanner
Lew <lew@[EMAIL PROTEC  2008-05-11 18:38:56 
Re: dependency scanner
jolz <BardzoTajneKonto  2008-05-11 21:08:10 
Re: dependency scanner
jolz <BardzoTajneKonto  2008-05-11 21:14:29 
Re: dependency scanner
"Mike Schilling"  2008-05-11 12:31:48 
Re: dependency scanner
Lew <lew@[EMAIL PROTEC  2008-05-11 15:51:55 
Re: dependency scanner
"Mike Schilling"  2008-05-11 21:41:37 
Re: dependency scanner
Lew <lew@[EMAIL PROTEC  2008-05-12 07:52:27 
Re: dependency scanner
"Aryeh M. Friedman&q  2008-05-12 08:32:25 
Re: dependency scanner
Lew <lew@[EMAIL PROTEC  2008-05-12 08:40:49 
Re: dependency scanner
"Aryeh M. Friedman&q  2008-05-12 08:53:19 
Re: dependency scanner
Lew <lew@[EMAIL PROTEC  2008-05-12 10:21:57 
Re: dependency scanner
Rex Mottram <rexm@[EMA  2008-05-12 10:43:30 
Re: dependency scanner
Lew <lew@[EMAIL PROTEC  2008-05-12 10:50:03 
Re: dependency scanner
"Aryeh M. Friedman&q  2008-05-12 10:56:26 
Re: dependency scanner
"Mike Schilling&quo  2008-05-12 09:06:50 
Re: dependency scanner
=?UTF-8?B?QXJuZSBWYWpow7h  2008-05-12 18:28:49 
Re: dependency scanner
Christopher Brooks <cx  2008-05-16 08:07:51 
Re: dependency scanner
"Mike Schilling&quo  2008-05-12 09:10:30 
Re: dependency scanner
Lew <lew@[EMAIL PROTEC  2008-05-12 22:19:03 
Re: dependency scanner
Roedy Green <see_websi  2008-05-12 12:49:46 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Dec 3 18:44:01 CST 2008.