| 1 |
/******************************************************************************* |
| 2 |
* Copyright (c) 2006, 2007 IBM Corporation and others. |
| 3 |
* |
| 4 |
* This program and the accompanying materials |
| 5 |
* are made available under the terms of the Eclipse Public License 2.0 |
| 6 |
* which accompanies this distribution, and is available at |
| 7 |
* https://www.eclipse.org/legal/epl-2.0/ |
| 8 |
* |
| 9 |
* SPDX-License-Identifier: EPL-2.0 |
| 10 |
* |
| 11 |
* Contributors: |
| 12 |
* [email protected] - initial API and implementation |
| 13 |
*******************************************************************************/ |
| 14 |
/* |
| 15 |
* Target for annotation processing test. Processing this |
| 16 |
* should result in generation of a class gen.HgcGen with |
| 17 |
* method public String foo(). |
| 18 |
* @see org.eclipse.jdt.compiler.apt.tests.processors.genclass.GenClassProc. |
| 19 |
*/ |
| 20 |
package targets.filer; |
| 21 |
|
| 22 |
import org.eclipse.jdt.compiler.apt.tests.annotations.GenResource; |
| 23 |
|
| 24 |
public class FilerTarget1 { |
| 25 |
@GenResource(pkg="resources", relativeName="txt/text.txt", stringContent="A generated string") |
| 26 |
interface A {} |
| 27 |
|
| 28 |
@GenResource(pkg="resources", relativeName="dat/binary.dat", binaryContent={102, 110, 111, 114, 100}) |
| 29 |
interface B {} |
| 30 |
} |