/Users/lyon/j4p/src/org/apache/tools/ant/ProjectComponent.java

1    // Decompiled by Jad v1.5.8c. Copyright 2001 Pavel Kouznetsov. 
2    // Jad home page: http://www.geocities.com/kpdus/jad.html 
3    // Decompiler options: packfields(3) packimports(7) deadcode fieldsfirst splitstr(64) nonlb lnc radix(10) lradix(10)  
4    // Source File Name:   ProjectComponent.java 
5     
6    package org.apache.tools.ant; 
7     
8     
9     
10   // Referenced classes of package org.apache.tools.ant: 
11   //            Project 
12    
13   public abstract class ProjectComponent { 
14    
15               /** 
16                * @deprecated Field project is deprecated 
17                */ 
18               protected Project project; 
19    
20               public ProjectComponent() { 
21               } 
22    
23               public void setProject(Project project) { 
24   /*  50*/        this.project = project; 
25               } 
26    
27               public Project getProject() { 
28   /*  59*/        return project; 
29               } 
30    
31               public void log(String msg) { 
32   /*  68*/        log(msg, 2); 
33               } 
34    
35               public void log(String msg, int msgLevel) { 
36   /*  79*/        if(project != null) 
37   /*  80*/            project.log(msg, msgLevel); 
38   /*  85*/        else 
39   /*  85*/        if(msgLevel >= 2) 
40   /*  86*/            System.err.println(msg); 
41               } 
42   } 
43