1 /*
2 * #%L
3 * wcm.io
4 * %%
5 * Copyright (C) 2022 wcm.io
6 * %%
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * #L%
19 */
20 package io.wcm.devops.conga.plugins.aem.maven.model;
21
22 import java.io.File;
23 import java.util.List;
24 import java.util.Map;
25
26 /**
27 * Represents an OSGi bundle file referenced by CONGA.
28 */
29 public final class BundleFile extends AbstractInstallableFile {
30
31 private final Boolean install;
32
33 /**
34 * @param file JAR file
35 * @param fileData File data
36 * @param variants Variants
37 */
38 public BundleFile(File file, Map<String, Object> fileData, List<String> variants) {
39 super(file, variants);
40 this.install = (Boolean)fileData.get("install");
41 }
42
43 public Boolean getInstall() {
44 return this.install;
45 }
46
47 }