587
|
1 |
/*
|
|
2 |
* Copyright (c) 2007-2008 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
|
5 |
* under the terms of the License "Eclipse Public License v1.0"
|
|
6 |
* which accompanies this distribution, and is available
|
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description:
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
package com.nokia.helium.ant.data;
|
|
19 |
|
|
20 |
import java.io.IOException;
|
628
|
21 |
|
587
|
22 |
import org.dom4j.Element;
|
|
23 |
|
|
24 |
/**
|
|
25 |
* An Ant library root object.
|
|
26 |
*/
|
|
27 |
public class AntlibMeta extends RootAntObjectMeta {
|
|
28 |
|
628
|
29 |
public AntlibMeta(AntFile antFile, Element node) throws IOException {
|
587
|
30 |
super(antFile, node);
|
|
31 |
|
|
32 |
// Only parse a project comment if it is marked
|
|
33 |
if (!getComment().isMarkedComment()) {
|
|
34 |
setComment(getEmptyComment());
|
|
35 |
}
|
|
36 |
}
|
|
37 |
|
|
38 |
@Override
|
|
39 |
public String getName() {
|
|
40 |
return getFile().getName();
|
|
41 |
}
|
|
42 |
}
|