Skip to content

Commit

Permalink
Merge branch 'ts-conversion' of github.com:specs-feup/jsweaver into s…
Browse files Browse the repository at this point in the history
…taging
  • Loading branch information
joaobispo committed Aug 12, 2024
2 parents 9d06b85 + ffdaf26 commit 81e96e4
Show file tree
Hide file tree
Showing 41 changed files with 18,272 additions and 20,482 deletions.
62 changes: 62 additions & 0 deletions .github/workflows/ant-lara-2.0-legacy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# This workflow will build a Java project with Ant
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-ant

name: Java CI - Lara 2.0 Legacy

on:
push:
branches: [ lara-2.0-legacy ]
pull_request:
branches: [ lara-2.0-legacy ]

# Daily at midnight
schedule:
- cron: '0 0 * * *'

permissions:
checks: write

jobs:
build:

runs-on: ubuntu-latest


steps:
- uses: actions/checkout@v3

- name: Cache ivy dependencies
id: cache-nivy
uses: actions/cache@v3
env:
cache-name: cache-ivy-dependencies
with:
# ivy dependencies cache files are stored in `~/.ivy2` on Linux/macOS
path: ~/.ivy2
key: ${{ runner.os }}-build-${{ env.cache-name }}

- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Generate build.xml
run: |
wget -N http://specs.fe.up.pt/tools/eclipse-build.jar
java -jar eclipse-build.jar https://github.com/specs-feup/specs-java-libs https://github.com/specs-feup/lara-framework?commit=lara-2.0-legacy ./
wget -N -O /usr/share/ant/lib/ivy-2.5.0.jar specs.fe.up.pt/libs/ivy-2.5.0.jar
- name: Build with Ant
run: |
ant -noinput -buildfile build.xml
#- name: Copy test results
# run: |
# Tried relative paths (not supported by junit action) and symlinks (are not followed by glob)
# Resorted to copying the tests to a folder in the repo folder
# cp -a reports-eclipse-build/. jsweaver/junit-reports/
- name: Publish Test Report
uses: mikepenz/[email protected]
if: always() # always run even if the previous step fails
with:
report_paths: '**/reports-eclipse-build/TEST-*.xml'
summary: true
#exclude_sources: ''
8 changes: 6 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
bin/
**/bin/**

### Gradle
**/.gradle/**
**/build/**

### Default folder for executing applications
**/run/**
!**/run/*.launch
!**/run/*.deploy
**/run/*-local.launch
**/run/*-local.launch
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Jackdaw
Javascript source-to-source compiler based on the LARA framework.


# Resources

A ZIP file with the compiled JAR for Jackdaw can be downloaded from [here](http://specs.fe.up.pt/tools/jackdaw.zip) ([previous releases](https://drive.google.com/drive/folders/1-y97JkfvLIPslDL7sjbjf1h4mRa9Eqzo?usp=sharing)).
Expand Down
11 changes: 11 additions & 0 deletions jsAst/.project
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,15 @@
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.apache.ivyde.eclipse.ivynature</nature>
</natures>
<filteredResources>
<filter>
<id>1692656713794</id>
<name></name>
<type>30</type>
<matcher>
<id>org.eclipse.core.resources.regexFilterMatcher</id>
<arguments>node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
</matcher>
</filter>
</filteredResources>
</projectDescription>
46 changes: 46 additions & 0 deletions jsAst/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
plugins {
id 'distribution'
}

// Java project
apply plugin: 'java'

java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}


// Repositories providers
repositories {
mavenCentral()
}

dependencies {
implementation "junit:junit:4.11"

implementation ':JsEngine'
implementation ':SpecsUtils'

implementation group: 'com.google.code.gson', name: 'gson', version: '2.4'
}

java {
withSourcesJar()
}

// Project sources
sourceSets {
main {
java {
srcDir 'src'
}

resources {
srcDir 'resources'
}

}


}
Loading

0 comments on commit 81e96e4

Please sign in to comment.