• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

devonfw / IDEasy / 26101908636

19 May 2026 01:55PM UTC coverage: 70.982% (+0.003%) from 70.979%
26101908636

Pull #1859

github

web-flow
Merge cf4a7f717 into b4eeee25f
Pull Request #1859: #1392: Smart completions

4472 of 6964 branches covered (64.22%)

Branch coverage included in aggregate %.

11521 of 15567 relevant lines covered (74.01%)

3.14 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

80.0
cli/src/main/java/com/devonfw/tools/ide/property/FileProperty.java
1
package com.devonfw.tools.ide.property;
2

3
import java.nio.file.Path;
4

5
import com.devonfw.tools.ide.validation.PropertyValidator;
6

7
/**
8
 * {@link PathProperty} for a file.
9
 */
10
public class FileProperty extends PathProperty {
11

12
  /**
13
   * The constructor.
14
   *
15
   * @param name the {@link #getName() property name}.
16
   * @param required the {@link #isRequired() required flag}.
17
   * @param mustExist the {@link #isPathRequiredToExist() required to exist flag}.
18
   * @param placeholder whether this property is substituted by some value or literal
19
   * @param alias the {@link #getAlias() property alias}.
20
   */
21
  public FileProperty(String name, boolean required, String alias, boolean mustExist, boolean placeholder) {
22

23
    this(name, required, alias, mustExist, placeholder, null);
8✔
24
  }
1✔
25

26
  /**
27
   * The constructor.
28
   *
29
   * @param name the {@link #getName() property name}.
30
   * @param required the {@link #isRequired() required flag}.
31
   * @param alias the {@link #getAlias() property alias}.
32
   * @param mustExist the {@link #isPathRequiredToExist() required to exist flag}.
33
   * @param placeholder whether this property is substituted by some value or literal
34
   * @param validator the {@link PropertyValidator} used to {@link #validate() validate} the {@link #getValue() value}.
35
   */
36
  public FileProperty(String name, boolean required, String alias, boolean mustExist, boolean placeholder, PropertyValidator<Path> validator) {
37

38
    super(name, required, alias, mustExist, placeholder, validator);
8✔
39
  }
1✔
40

41
  @Override
42
  protected boolean isPathRequiredToBeFile() {
43

44
    return true;
×
45
  }
46

47
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc