warbler compiled jar doesn't seem to generate class files
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 15/100
- Tipo di issue
- Bug
- Chiarezza
- Da chiarire
- Stato di attività
- Ferma
- Ambito
- build-system
Direzione di ricerca
Start with the warbler compiled jar command and reproduce it using the lib/cews-lib.rb example from the issue, then list the jar's contents to check for a class file for JavaIntegrationTest. The issue gives no warbler file or test to start from, and the thread never settles whether warbler is the right tool. Done would mean the compiled jar contains a usable class with sayHello, or a documented answer that warbler cannot do this.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
I'm trying to use warbler to create a jar file that I can use inside an existing Java application. I'm not sure if I can use warbler for this, but here's what I'm doing: I created a dummy Ruby file in bin/, and created a simple Ruby file in lib/ called cews-lib.rb.
require 'java'
java_require 'cews-lib'
class JavaIntegrationTest
java_signature 'void sayHello()'
def sayHello
puts 'Hello, World!'
end
end
When I execute warbler compiled jar, the JAR file that I inspect doesn't have a class file for the JavaIntegratIonTest class that I can call from Java. When I use jrubyc --javac cews-lib.rb, the generated Java file has a usable sayHello method. Not sure if warbler is the right tool, if not, does anyone know what is? Thank you.
- Lingua principale
- Ruby
- Stelle
- 901
- Fork
- 206
- Merge medio
- 1g 10h
- PR unite (30g)
- 3
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di jruby/warbler
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
-
Difficoltà 4/5 Più di una settimana Idoneità per principianti 25/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 22/100
-
Support Java module systemAperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 12/100
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 12/100
Tutte le issue di jruby/warbler
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 2 giorni
-
Concept round-trip: serialized "id" parses as #id, #uuid then lazily derives a different UUIDAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
glossarist/glossarist-ruby#247 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
voxpupuli/puppet-corosync#589 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
simp/pupmod-simp-simp#406 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno