Skip to content

Latest commit

 

History

History
34 lines (20 loc) · 707 Bytes

README.md

File metadata and controls

34 lines (20 loc) · 707 Bytes

Cantina Code Problem

Repo containing my solution to the Cantina coding problem.

Setup

Java 8

Apache Ant

Usage

ant build

To run tests: ant junit

To run command line:

export CLASSPATH=lib/jackson-annotations-2.11.2.jar:lib/jackson-core-2.11.2.jar:lib/jackson-databind-2.11.2.jar:dist/lib/Cantina.jar

java -cp $CLASSPATH cantina.CLI

The following selectors are supported:

  1. Class - simply enter a string with the node class.
  2. classNames - prefix the search string with a period, for example, .container
  3. Identifier - prefix the search string with a hash, for example, #apply

Compound Selectors

Example: Button#apply

Chained Selectors

Example: StackView.container.accessoryView