Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^3: Java Auto-Compile

by ikegami (Pope)
on Dec 01, 2011 at 02:24 UTC ( #940993=note: print w/replies, xml ) Need Help??


in reply to Re^2: Java Auto-Compile
in thread Java Auto-Compile

The way that java works, if you change one thing, you have to recompile it all

That's not true. Like other languages, you just have to recompile what depends on the class you changed.

That said, that requires a list of dependencies, and finding that list is beyond what this tool should do.

that's what I asked

I didn't notice there was a question, since I didn't look for one, since this isn't SoPW.

javac surely returns a non-zero exit code on error, and zero on success.

Replies are listed 'Best First'.
Re^4: Java Auto-Compile
by JediMasterT (Sexton) on Dec 01, 2011 at 04:52 UTC

    If I change something in the hierarchy, the everything lower changes.
    Also I tried running javac in `` quotes, but it never returns anything.

      If I change something in the hierarchy, the everything lower changes.

      Yes, like I said, you don't need to recompile everything. Only the stuff higher in the dependency hierarchy needs to be recompiled. You don't have to compile the stuff deeper in the dependency hierarchy.

      Also I tried running javac in `` quotes, but it never returns anything.

      That captures what javac prints to STDOUT. I suggested you check its exit code. See the return value of system.

        Fantastic sir! I just did that.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://940993]
help
Chatterbox?
[shmem]: but the results of both operations are different.
[shmem]: result := the discarded result (what's leftmost of the statement)
[shmem]: push returns the number of elements in @foo, the assignment returns all the elements in the (renewed) @foo
[Lady_Aleena]: Sanity check please? push @line, ref($list_addition ) eq 'ARRAY' ? @$list_addition : $list_addiction; # so I don't have the change existing uses of the sub.
[shmem]: $list_addiction should be $list_addition
Discipulus loose the tozzetto party!
[shmem]: .oO( addition of cookies for addiction to cookies )
[Lady_Aleena]: Other than my typos shmem. 8)
[shmem]: otherwise fine
[Discipulus]: tozzetti & vinsanto

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2017-04-27 11:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (503 votes). Check out past polls.